1

Is there any static link (and I'm sure there is, but I couldn't find it) which defaults to $HOME/desktop if I've changed the language.

My problem is, I'm writting a little program and want to put some files on the desktop. My system is in german and other systems may use other languages.

2

The solution is pretty simple:

xdg-user-dir DESKTOP will print the path I need.

I can also use DOWNLOAD, TEMPLATES, PUBLICSHARE, DOCUMENTS, MUSIC, PICTURES or VIDEOS to get the other file locations.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.