[pygtk] getting desktop path

Timo timomlists at gmail.com
Fri Jun 4 01:49:51 WST 2010


On 03-06-10 15:47, 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?
I don't know a Python approach to do this. But most Linux systems have 
the xdg-utils installed though, so the following works:

$ xdg-user-dir DESKTOP
/home/timo/Bureaublad

Cheers,
Timo

>
> _______________________________________________
> 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