[pygtk] getting desktop path
gabriele.lanaro at gmail.com
Sat Jun 5 00:22:25 WST 2010
Thank you very much, I'll end up using pyxdg or some other xdg utility.
2010/6/3 Mike Sheldon <mike a mikeasoft.com>
> On Thu, 2010-06-03 at 16:20 +0200, Pasquale Boemio wrote:
> > If your sistem is well configurated there is a file in your home
> > directory that set some variables.
> > Here is mine:
> > pau a 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!
> It might be better to use the pyxdg module rather than attempting to
> read that file directly, that way it can fall back on the system-wide
> defaults if a user doesn't have anything configured (or the
> freedesktop.org defaults if nothing is specified at the system level).
>  http://www.freedesktop.org/wiki/Software/pyxdg
> pygtk mailing list pygtk a daa.com.au
> Read the PyGTK FAQ: http://faq.pygtk.org/
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
More information about the pygtk