PDA

View Full Version : [gnome] Moves my ~/Desktop



r_anjit
October 23rd, 2011, 11:48 AM
I accidently moved my desktop to another location wit sudo powers .


$ sudo mv ~/Desktop /var/cache/apt/archives
I realising the mistake brought it back

$sudo mv /var/cache/apt/archives ~

But now it does not work and my desktop shows the home folder contents along with the Desktop folder as a folder .

How can I bring back the desktop..association...I have messed up with the settings it seems .

Thanks !!

oldos2er
October 23rd, 2011, 05:24 PM
Run
gksudo nautilus and look for your Desktop files in /root.
mkdir Desktop should give you back a Desktop folder; run it without sudo privileges from within your home folder.

"sudo mv /var/cache/apt/archives ~" would place files in root's home folder, not your user's home.

matt_symes
October 23rd, 2011, 05:51 PM
Hi

If oldos2ers advice does not completely fix it you may need to edit your ~/.config/user-dirs.dirs file.

Make it look like this.


matthew@matthew-Aspire-7540:~$ cat ~/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
matthew@matthew-Aspire-7540:~$

Kind regards

r_anjit
November 9th, 2011, 08:10 AM
" Thanks both of you above ..... I changed the concerned lines in ~/.config/user-dirs.dirs and my desktop is working fine again ....Thanks again !!! "