I upgraded from Ubuntu 18.04 to 20.04 but desktop files and icons are missing, How do I should solve this problem?
Try switching desktop manager.
I also just upgraded my stable 18.04 to 20.04. Initially I can't even see my initial login prompt and I have forgotten that I installed lightdm and made that the default vice gdm (gnome desktop manager) which is version 3 now (gdm3).
I followed this nice how-to: Switch Display Manager in Ubuntu 20.04
You can have both gdm3 and lightdm installed but one can only be set active.
I'm on stock Ubuntu 20.04.2, fresh install.
I also noted out of the blue, that the contents of
~/Desktop failed to show up on the desktop.
So I went ahead and enabled the Desktop Icons extension in Tweaks, and nothing happened. After I have restarted the Gnome Shell with Alt+F2 +
r, and still no icons, I went back to Tweaks only to find the Desktop Icons extension disabled again. So I repeated the cycle, this time tweaking on the extension's preferences, hoping that it would unstuck the glitch somehow. No luck, the Desktop Icons extension kept disabling itself on each restart of Gnome Shell.
Then I looked in dconf-editor, in
org.gnome.shell enabled-extensions: "desktop-icons@csoriano" was in there, as it was supposed to be. Yet the problem persisted.
I do have an additional piece of GUI window, that is called, plainly, Extensions in the apps / activies overview. It's a single window, and looks very similar to Gnome Tweaks' "Extensions" tab UI. Only, this one takes precedence over the one in Tweaks.
I don't know where this Extensions app originates from: whether it's installed on 20.04 by default, or maybe I have obtained it by installing the
Anyways, enabling Desktop Icons in the plain Extensions app solved everything.
I have Ubuntu 20.04 (Gnome) and sometimes icons are missing after restart. I use a rather silly solution. I just create a new file, this causes the gnome to load the desktop icons again. ctrl+alt+t to open a terminal, then:
touch Desktop/NEW #Creates an empty file named NEW rm Desktop/NEW #Deletes the file