Results 1 to 4 of 4

Thread: Renaming Desktop to .Desktop for lulz - help

  1. #1
    Join Date
    Dec 2012
    Beans
    6

    Renaming Desktop to .Desktop for lulz - help

    I recently thought it would be a good idea to start hiding files and folders and encrypting things. All was going well until curiosity struck me. I wondered while I was staring at my Desktop and I was in my Desktop directory in the terminal looking at the files on my Desktop. What I was wondering was: "Hhmmm, what if I just cd to the home directory one directory back and run a sudo mv Desktop .Desktop command" So I ran: sudo ../Desktop .Desktop Making my Desktop a hidden file.

    Sure enough, my Desktop disappeared right in front of me and my new desktop became my home directory. I didn't like this, as I was not excepting my home directory to be my Desktop as a result. I tried to name it back. sudo .Desktop Desktop. Unfortunately for me, it doesn't bring my Desktop back to my Desktop if that makes sense. The directory is there the way it should be, but my actual workspace is still the home directory. This is weird. Does anyone know how to fix this?
    #Facepalm

  2. #2
    Join Date
    Nov 2006
    Location
    The green
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Renaming Desktop to .Desktop for lulz - help

    Open the file
    Code:
    ~/.config/user-dirs.dirs
    and edit the following line to look like this:
    Code:
    XDG_DESKTOP_DIR="$HOME/Desktop"
    After that run
    Code:
    killall nautilus
    to restart nautilus and it should be back to the normal desktop.

  3. #3
    Join Date
    Dec 2012
    Beans
    6

    Re: Renaming Desktop to .Desktop for lulz - help

    Quote Originally Posted by omeomi View Post
    Open the file
    Code:
    ~/.config/user-dirs.dirs
    and edit the following line to look like this:
    Code:
    XDG_DESKTOP_DIR="$HOME/Desktop"
    After that run
    Code:
    killall nautilus
    to restart nautilus and it should be back to the normal desktop.
    Thanks, worked like a charm!

  4. #4
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Renaming Desktop to .Desktop for lulz - help

    You don't need to rename files to hide them, at least if you only want to hide them in the graphical file managers.

    You can instead create a text file called ".hidden", and list every file & directory you want to hide in that file, one per each line. (The .hidden file needs to be in the same location with the things you wan to hide, and doesn't support paths, so you need a separate .hidden file in each directory where you want to hide something).

    Things hidden this way will still appear as normal (not hidden) files in command line, and of course some graphical file managers might not support it. But on the other hand it allows you to hide things you simply can't rename without breaking something...

Tags for this Thread

Bookmarks

Posting Permissions

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