Where is the Desktop?
I need to build an instalaltion script for my project where I need to access to the Desktop.
The folder in the English installation is $HOME/Desktop, but it varies in installation
in other languages ($HOME/Scrivania in Italian for example).
Is there a way to get the correct directory name?
Something like an environment variable $DESKTOP pointing to the name of
the Desktop in the current installation?
There isn't a variable for the desktop, but the
key ~ is a shortcut to the user's home
directory, so maybe ~/Desktop would
be the right expression.
your expression ~/Desktop works correctly on English-configured
systems, but if the system has been installed with another localization,
that directory do not exist.
(For Italian, it is ~/Scrivania, an so on for other languages)