I fail to change to the desktop via command line. I tried it like this.
cd ~/Desktop
But then I get "File or Path not found"
I fail to change to the desktop via command line. I tried it like this.
cd ~/Desktop
But then I get "File or Path not found"
The problem you're running into is a one where the name of the directory can change depending on the user's selected language.
In the general case you should be able to run
xdg-user-dir DESKTOP
to get the path to the current user's Desktop directory. e.g.
% xdg-user-dir DESKTOP
/home/sweh/Desktop
Scripts should take this into account when looking for the Desktop folder (e.g. to install shortcut icons).
(If xdg-user-dir
isn't found then it's possible the user doesn't have a GUI desktop; default to "$HOME/Desktop" in that case).
Spec's for the different user-dirs can be found at https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
In your specific case, you found manually (as per your comments) that "Schreibtisch" is the name used for your login.
ls -l ~
? – ctrl-alt-delor Jul 19 '16 at 08:26cd ~/Schreibtisch
it worked! :) – Black Jul 19 '16 at 08:35ln -sT Schreibtisch Desktop
. – ctrl-alt-delor Jul 19 '16 at 08:45cd ~/Desktop
then i still get "File or Path not found" – Black Jul 19 '16 at 08:56~
when you create the symlink. This may be better if you have gnu lnln -sTr ~/Schreibtisch ~/Desktop
elsepushd ~; ln -sT Schreibtisch Desktop; popd
if you have bash, orcd ~; ln -sT Schreibtisch Desktop; cd -
– ctrl-alt-delor Jul 19 '16 at 09:07