Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Where is the Desktop?

    Hi all,

    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?

    Gianluca Moro
    Last edited by oz; 02-17-2010 at 10:59 PM. Reason: removed spam

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    the hills
    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.

  3. #3

    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)

    Gianluca Moro
    Last edited by oz; 02-17-2010 at 10:47 PM. Reason: removed spam

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts