Code: Select all
sudo su
for file in $(find /var/lib/menu-xdg/applications/menu-xdg -name "*.desktop"); do if [[ -n $(grep -IRiL "Icon" $file) ]] ; then echo "Patching File: $file" ; sudo echo "Icon=application-x-executable">>$file; fi; done
Code: Select all
sudo su
for file in $(find /var/lib/menu-xdg/applications/menu-xdg -name "*.desktop"); do if [[ -n $(grep -IRiL "Icon" $file) ]] ; then echo "Patching File: $file" ; sudo echo "Icon=application-x-executable">>$file; fi; done
thanks, Other folder is back, although inside folder is ugly.timjstone wrote:copying the previous command, but switching to root, should do it
Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
====="by CraigV » Sat Oct 01, 2016 11:40 pm
@spl23
There is a different menu editor problem that has caused me much frustration. If you add new menus (with items) all is fine, but if later you accidentally open the menu editor and then click Cancel, your new menu items disappear. "
Johnny_quattro wrote: ↑Sun Dec 10, 2017 5:17 pmI've just encountered this on one of my Raspberry Pi 3 computers and used a quick script to locate the culprits:
for a in `locate *.desktop`
do echo "Checking file $a"
cat $a | grep Icon
if [ $? = 0 ]; then sleep .25; echo "Found Icon entry in $a"
else echo "************************** NOT FOUND in $a **************************"
fi
done
This relies on the mlocate database which should run daily. If you need to run it manually, perform a 'sudo updatedb' before running the above script.
You will need to edit the errant .desktop file (more than likely using root) and add the entry 'Icon=application-x-executable' as required.
My two dodgy files were as follows:
/usr/share/applications/libreoffice-xsltfilter.desktop
/usr/share/xsessions/kodi.desktop