I am making a script and I am looking for a way to get the variable names for Desktop, Music, Documents, Pictures and others Folders. Depending on the language they change. For example Desktop in Spanish is Escritorio. So how can I get the folder directory without needing to find out what language the user is using or having to make several IF statements for each language.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
The common folder names are as follows. Just extracted from a file in home directory.
Of course, you are only interested in the variable name. So there are Related question: How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder? Hope this will help. |
|||||||
|

