Path to Desktop directory when localized environment is used

Florian Diesch diesch at
Fri Jul 22 22:26:24 UTC 2011

fred f <ffred69 at> writes:

>> On Thu, Jul 21, 2011 at 5:07 PM, Florian Diesch <diesch at> wrote:
>>> Am Donnerstag, den 21.07.2011, 16:57 +0200 schrieb fred f
>>> <ffred69 at>:
>>>> How can I found out %subject% in script, because some localization
>>>> have changed the default ~/Desktop to localized names.
>>> xdg-user-dir DESKTOP
> thanks for fast response, can I use this command for any usual distro
> or it is ubuntu's "speciality".

It's part of the xdg-user-dirs software package from so it's not Ubuntu

I don't know if it's part of all major distros but as it's a quite
simple shell script you can just copy the code.


More information about the ubuntu-users mailing list