Score:1

home/user/Desktop and Public Folders Show as Type Link (broken) (inode/symlink)

cx flag

Ubuntu 22.04 LTS asked me for an update which I did and apparently everything went ok but upon restarting all my home folders appeared in my Desktop.

Looking into my home folder I found out that home/user/Desktop and Public folders show as: Type Link (broken) (inode/symlink). The rest of user folders have different permissions ("Create and delete files") but this file only gives me the options of "Read and write" an "Read-only".

By doing ls -lid to these files as suggested by Raffa, I get:

1334600 lrwxrwxrwx 1 user user 19 ago 19 11:40 Desktop -> /home/user/Desktop

and

1334614 lrwxrwxrwx 1 user user 18 ago 19 11:40 Public -> /home/user/Public

How can I fix this?

I'm currently on 22.04.3 LTS.

Raffa avatar
jp flag
The output of `ls -lid /home/$USER/{Desktop,Public}` might help us see part of the picture.
Ventolinmono avatar
cx flag
Thanks, added that output to the question.
Melinda avatar
cn flag
I applied an UBUNTU UPDATE yesterday and this morning I rebooted my system and found all my home folders as desktop icons. I never have DESKTOP ICONS displayed. I downloaded the Extension Manager app and was able to hide these desktop icons and then I noticed the same thing that is indicated on this ticket. Any help/direction would be appreciated. Thank you.
Gigiux avatar
eg flag
I have exactly the same problem. Is there any update?
Gigiux avatar
eg flag
Actually, it looks like the Desktop is now pointing at the Home directory.
Ventolinmono avatar
cx flag
@Gigiux Is there a way to fix that?
Gigiux avatar
eg flag
I don't know, I was hoping you knew...
Score:2
ee flag
pcc

I solved it this way:

As suggested by https://forums.linuxmint.com/viewtopic.php?t=198238 I checked that typing

cat $HOME/.config/user-dirs.dirs | grep DESKTOP

showed

XDG_DESKTOP_DIR="$HOME/"

instead of

XDG_DESKTOP_DIR="$HOME/Desktop"

Then I followed this solution How to set the desktop to $HOME/Desktop?

  1. First I deleted all the broken folders
rm Desktop Templates Public Music Videos
  1. I created new folders
mkdir Desktop Templates Public Music Videos
  1. Then I edited configuration file: Typing in the terminal
gedit ~/.config/user-dirs.dirs

I added the missing folders to make it 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"
  1. Save the configuration file, and after logging out and in the problem was solved
Gigiux avatar
eg flag
Worked for me too. Thank you!
Ventolinmono avatar
cx flag
Thank you very much. Did this and everything is back to normal :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.