[pygtk] getting desktop path

Pasquale Boemio boemianrapsodi at gmail.com
Thu Jun 3 22:20:06 WST 2010


If your sistem is well configurated there is a file in your home
directory that set some variables.
Here is mine:
pau at LittleMonkey ~ $ cat .config/user-dirs.dirs 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_MUSIC_DIR="/media/PausExt/Musica"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_PUBLICSHARE_DIR="$HOME/Dropbox"
XDG_PICTURES_DIR="$HOME/Pictures"

you can use this, but look that some users maybe don't have it!


On Thu, 2010-06-03 at 15:47 +0200, Gabriele Lanaro wrote:
> How to get, for example the desktop path of the current user?
> (localization-aware)
> Would be nice to obtain for example also the default download-path.
> Is that possible?
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/




More information about the pygtk mailing list