Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
There should be a setting in your window manager that controls this. It looks like you are using Gnome correct?
If so then this link should help, but it is a bit old. https://www.maketecheasier.com/hide-...-icons-ubuntu/
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by Lord Asphodel
Suddenly all the folders in "Home" are in my desktop, I donīt know why nor how to remove them without removing the originals.
Launch a file manager. Make sure that it's pointed to your home directory.
Look for a folder called "Desktop". From the screen capture, I'm guessing that the only thing you're seeing in your home directory is a folder named "Desktop".
Try opening the "Desktop" folder in another window. (Right-clicking on the Desktop icon should let you do this.) I'm betting that -- for whatever reason -- everything in $HOME got moved into $HOME/Desktop that you're now displaying in the second file manager window.
If that's the case, you should be able to drag a folder from one file manager to the other to repopulate your home directory with the contents of "Desktop".
Once you've moved a few directories and are comfortable with the process, you could highlight several icons in "Desktop" and drag them to the "home" file manager window.
You could also do this by opening the file manager and an xterm:
Open file manager and make sure it's pointing to $HOME.
In the xterm, do something like:
Code:
$ cd
$ cd Desktop
$ mv folder-name $HOME/
As you issue "mv" commands, you should start to see folders re-appearing in file manager window that's displaying your home directory and disappearing from your desktop.
Repeat the process by either dragging icons from the "Desktop" directory back into the file manager displaying your home directory or by issuing the "mv" commands until you've emptied out "Desktop". If you had any files that you wanted on the Desktop -- for example, I sometimes create quick TODO test files on my desktop where they server as reminders -- simply omit those from the move process.
NOTE: in the above I mention (mostly) moving folders/directories back to $HOME. There are some regular files you'll need to move as well (your bash startup/profile files, etc.). Don't forget those. You can issue "ls -a" in that Desktop directory to see what remains to be moved (or if your using the dual file-manager method they should still be seen in the "Desktop" file manager windows as your screen capture shows).
After moving everything back to $HOME, you should probably log out and back in again. If your .bashrc (and any other startup scripts) were missing when you logged in, your environment is not going to be what you expect. Aliases you might have defined won't be defined and other things you were doing upon login won't be defined/performed until you log back in with the scripts in the correct location.
Then you need to think back and try to figure out how everything got dumped onto your desktop.
I seriously doubt your folders all got moved, else you'd likely be having all sorts of other issues as well. BEFORE you go moving folders around, you need to check a setting.
1. Open ~/.config/user-dirs.dirs in a text editor.
2. Find the setting XDG_DESKTOP_DIR and verify it's value is $HOME/Desktop. If not, set it thus. The line should read: XDG_DESKTOP_DIR=$HOME/Desktop
3. Log out and back into your GUI.
No DESKTOP folder, all the folders are replicated, if I erase a file in my desktop is automatically deleted in de HOME folder.... Attachment 38943
Ok, then please follow the instructions in my previous post. It sounds like your Desktop folder somehow got moved or deleted, and your desktop manager "fixed" the issue by reassigning the value.
You'll need to recreate your Desktop folder before you change the value. Note, that it is Desktop. Not DESKTOP or desktop.
Ok I did it but when I log in again, the line I modified (XDG_DESKTOP_DIR=$HOME/Desktop) is back again (XDG_DESKTOP_DIR=$HOME/) the world Desktop is deleted.
Ok I did it but when I log in again, the line I modified (XDG_DESKTOP_DIR=$HOME/Desktop) is back again (XDG_DESKTOP_DIR=$HOME/) the world Desktop is deleted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.