Join Nostr
2025-12-08 13:59:03 UTC

npub1va…knuu7 on Nostr: My favorite part of researching this was finding this in an old 2012 thread: "I will ...

My favorite part of researching this was finding this in an old 2012 thread:

"I will second the default of $HOME.

I, like many people, like to watch pornography on my computer. Lots of pornography. Pornography that pushes the boundaries of what is physically, morally, and socially acceptable. Contemptuous, despicable, regrettable pornography.

I think it would be great if the GtkFileChooser did not try to announce this fact to everyone who uses my computer to save a spreadsheet.

Thanks!" https://bugzilla.gnome.org/show_bug.cgi?id=658280#c15

😆
Linux desktop stuff is such a mystery to me. This honestly seems batshit insane, but in GTK3, it appears that if you use a FilePicker, something like (Rust here but w/e):
rfd::FileDialog::new().set_directory(&my_specific_dir).pick_folder()

... it refuses to open the file picker in your specified directory. It just flat out ignores you, and *always* opens the dialog in its "Recent Items". So not complaining about a default (though it's a terrible one honestly), but the baffling decision to just ignore the developer's setting. I would love to find any justification of this anywhere, but I can't. This "documentation" ( https://docs.gtk.org/gtk3/method.FileChooser.set_current_folder.html ) just points at a non-existent other documentation section to justify why you shouldn't use the function (Not "deprecated" but "warning, you'd better not use this function, but we won't tell you why!"). The code itself basically defaults to recent items, and that can *only* be overwritten with a GTK setting, outside of the developer's control, and here's the best bit: if you somehow get your user to override it, they can *only* change the location the FilePicker opens in, to $HOME! Your directory setting will still get ignored!

Btw this restriction did not exist in the previous GTK version; they actively added it as an improvement.

#linux