If your sistem is well configurated there is a file in your home directory that set some variables. Here is mine: p...@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 [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
