If you’re like most people, your desktop is cluttered and full of shortcuts to programs and files you use only occasionally. You probably don’t have enough space on your desktop to store all of your programs and files, so you’ve been using folders to organize them. But what if you don’t have a dedicated folder for each program? What if you want to use a folder that’s already on your computer? You can use any folder on your computer as a desktop shortcut, even a Dropbox folder. Here’s how:

  1. Open the file explorer window by clicking the Windows logo in the bottom-left corner of your screen, clicking Start, typing “explorer,” and pressing Enter.
  2. Navigate to the location where you want to create the shortcut. For example, if you want to create a shortcut to Firefox in your Downloads folder, navigate to C:\Users\YourUserName\Downloads.
  3. Right-click the file or folder and select “Create Shortcut.” In the “Type” field, type “firefox.” In the “Location” field, type C:\Program Files (x86)\Mozilla Firefox\firefox.exe (or whatever path is appropriate for your version of Firefox). Click OK.
  4. Right-click the newly created shortcut and select “Properties.” In the “Shortcut” tab, click Change Icon and select an icon from your computer’s hard drive or from online resources such as The Noun Project or Icons8. Click OK. ..

Not only can you change your desktop folder, you can change the location of any other folder Ubuntu creates for you in your home folder, like Documents or Music – and this works in any Linux distribution using the Gnome desktop manager.

In this example, we’re going to change desktop to show our Dropbox folder. Open your home folder in a File Browser by clicking on Places > Home Folder.

In the Home Folder, open the .config folder. By default, .config is hidden, so you may have to show hidden folders (temporarily) by clicking on View > Show Hidden Files.

Then open the .config folder by double-clicking on it.

Now open the user-dirs.dirs file…

If double-clicking on it does not open it in a text editor, right-click on it and choose Open with Other Application… and find a text editor like Gedit.

Change the entry associated with XDG_DESKTOP_DIR to the folder you want to be shown as your desktop. In our case, this is $HOME/Dropbox.

Note: The “~” shortcut for the home directory won’t work in this file (use $HOME for that), but an absolute path (i.e. a path starting with “/”) will work.

Feel free to change the locations of the other folders as well.

Save and close user-dirs.dirs. At this point you can either log off and then log back on to get your desktop back, or open a terminal window Applications > Accessories > Terminal and enter:

Nautilus (the file manager in Gnome) will restart itself and display your newly chosen folder as the desktop!

This is a cool trick to use any folder for your Ubuntu desktop. What did you use as your desktop folder? Let us know in the comments!