Default Location in GTK+ File Chooser
Today I finally got annoyed enough with Ubuntu's GTK+ defaulting my file choosers to $HOME/Documents rather than $HOME. I can see how this would be useful, but Documents contains a few files, whereas I generally want to get into ~/Pictures, or ~/Programming. Luckily sebuild saves the day, by telling me about GTK_DEFAULT_FILECHOOSER_DIR. One quick export later:
export GTK_DEFAULT_FILECHOOSER_DIR=$HOME
And voilà, it works. Now please can the comments section of this
post not turn into a new GTK file chooser sucks arse d000dz old one
r0xkkz
. You try explaining to a non-geek why parent
folder
is .., and why . is in the folder list at
all.
NP: Songs In The Key Of Life, Stevie Wonder
For example PKG_CONFIG_PATH, PATH and even LD_LIBRARY_PATH are variables that often need to be set but it is hard to tell where.
For me only setting them in ~/.xsession seemed to work correctly, otherwise they would not be in effect at all places ( ie. applications started via the Application menu or from the panel ).
Setting them in .xsession is the correct and canonical place for X-wide environment variables. My .xsession and .bash_profile both source .profile, which has common variables.
Otherwise, sorry for making wrong assumptions.
I do not meant that GNOME should set them but it should offer a dialog to put them into the correct files. ( Much like the environment variables dialog in Windows ).
I also don't believe this should be in GNOME as a typical GNOME user will never use it. That doesn't stop someone writing this app using GTK+ however.