Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
39
rated 0 times [  39] [ 0]  / answers: 1 / hits: 24123  / 2 Years ago, fri, february 4, 2022, 11:07:00

Recently I deleted the folder Desktop from my $HOME directory. When I logged in again all files and directories in $HOME were shown on the desktop. So I wanted to get the folder back. What is the recommended way to achieve this? I edited ~/.config/xdg-user-dirs.dir and added the correct variable. But I guess there must be some other (more easy?) way.


More From » gnome

 Answers
2

  1. Create a new folder that you want to use as your folder.



    For example, type mkdir ~/Desktop in a terminal (Ctrl+Alt+T to open one) to create a folder named Desktop in your home directory.


  2. Edit your configuration.



    Edit the file ~/.config/user-dirs.dirs. You can do this by opening a terminal, then enter:



    gedit ~/.config/user-dirs.dirs


    Change the entry for XDG_DESKTOP_DIR to your new desktop folder, or add it, if the entry does not exist. After your edit, the file should look like this:



    XDG_DESKTOP_DIR="$HOME/Desktop"  
    XDG_DOWNLOAD_DIR="$HOME/Download"
    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"

  3. Log out and then log in again and your desktop should show the specified folder.



[#39651] Saturday, February 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionpromoti

Total Points: 14
Total Questions: 112
Total Answers: 113

Location: Tonga
Member since Tue, Nov 30, 2021
2 Years ago
tionpromoti questions
Fri, Apr 15, 22, 03:58, 2 Years ago
Tue, Jun 1, 21, 23:05, 3 Years ago
Mon, Jul 5, 21, 06:11, 3 Years ago
;