LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-20-2022, 12:21 PM   #1
Lord Asphodel
LQ Newbie
 
Registered: Apr 2022
Posts: 9

Rep: Reputation: 0
HELP "Home" folders appear in my desktop


Suddenly all the folders in "Home" are in my desktop, I donīt know why nor how to remove them without removing the originals.

Click image for larger version

Name:	Screenshot from 2022-05-20 14-14-46.jpg
Views:	28
Size:	59.2 KB
ID:	38942
 
Old 05-20-2022, 12:35 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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/
 
Old 05-20-2022, 12:36 PM   #3
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Check the properties, if it's link you can delete it, or to be on the safe side,move to wastebasket
 
Old 05-20-2022, 01:12 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Lord Asphodel View Post
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.

Good luck...
 
1 members found this post helpful.
Old 05-20-2022, 01:35 PM   #5
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
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.
 
Old 05-20-2022, 06:12 PM   #6
Lord Asphodel
LQ Newbie
 
Registered: Apr 2022
Posts: 9

Original Poster
Rep: Reputation: 0
No DESKTOP folder, all the folders are replicated, if I erase a file in my desktop is automatically deleted in HOME folder....
Click image for larger version

Name:	Screenshot from 2022-05-20 20-01-46.jpg
Views:	15
Size:	69.1 KB
ID:	38943

Last edited by Lord Asphodel; 05-21-2022 at 06:50 AM.
 
Old 05-20-2022, 06:48 PM   #7
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Lord Asphodel View Post
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.

Last edited by SlowCoder; 05-20-2022 at 06:49 PM.
 
1 members found this post helpful.
Old 05-21-2022, 07:01 AM   #8
Lord Asphodel
LQ Newbie
 
Registered: Apr 2022
Posts: 9

Original Poster
Rep: Reputation: 0
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.

Click image for larger version

Name:	Screenshot from 2022-05-21 08-59-48.png
Views:	11
Size:	15.8 KB
ID:	38946
 
Old 05-21-2022, 07:18 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Please read
Code:
man xdg-user-dirs-update
and change the Desktop path accordingly.
 
Old 05-21-2022, 12:49 PM   #10
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Lord Asphodel View Post
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.
Did you recreate the Desktop folder first?
 
Old 05-21-2022, 06:42 PM   #11
Lord Asphodel
LQ Newbie
 
Registered: Apr 2022
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SlowCoder View Post
Did you recreate the Desktop folder first?
I missed that step, now it worked perfectly!

Thanks a lot!
 
Old 05-21-2022, 06:51 PM   #12
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Lord Asphodel View Post
I missed that step, now it worked perfectly!

Thanks a lot!
Glad you got it working.
 
Old 05-22-2022, 12:22 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Please mark your thread SOLVED (see my signature). Others will benefit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Share folders doesn't appear in home/user/.gvfs joodle Linux Deepin 2 08-31-2012 04:10 AM
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
Mount storage partition folders to home folders skykooler Linux - Newbie 4 10-07-2010 10:56 PM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration