Desktop icons on Ubuntu 18.04 no longer displayed properly
772
After upgrading to Ubuntu 18.04 my desktop icons no longer display their respective artwork. Only after opening them individually and going through the process of "Untrusted Application Launcher" will correct them.
Is there a way to trigger a mass "trust" to bring the art back or some other method?
desktop files can be trusted via the command line:
gio set Your_desktop_file.desktop "metadata::trusted" yes
NOTE:
Make sure your Desktop file is executable with the following command: chmod +x Your_desktop_file.desktop
You have to run this command with the same user as the owner of the desktop files
It only works if you run the command in the gnome shell (not via SSH)
To do this automatically at logon, you have to make a logon script which will execute a script, as this only run when Gnome is started. For example you can create a .desktop file in ~/.config/autostart/ which execute some shell script including the gio commands
Make sure nautilus-desktop is really started. You can create a while loop with a sleep 1 till nautilus-desktop runs
Icon's will not refresh automatically. You can achieve this with pressing F5 on the desktop or restart nautilus in your autostart script. killall nautilus && nautilus-desktop & (the last & sign is to make sure the rest of your code will run. Otherwise it will stop the script there till you close nautilus-desktop process again)
desktop files can be trusted via the command line:
NOTE:
chmod +x Your_desktop_file.desktop
.desktop
file in~/.config/autostart/
which execute some shell script including thegio
commandsnautilus-desktop
is really started. You can create a while loop with asleep 1
tillnautilus-desktop
runsautostart
script.killall nautilus && nautilus-desktop &
(the last & sign is to make sure the rest of your code will run. Otherwise it will stop the script there till you closenautilus-desktop
process again)