I have a heavily customised MX with XFCE4 desktop. I do NOT use Conky and Imagemagic, they are not installed.
However, after each "full" upgrade I get desktop files for these installed by default - please refer to the screenshot attached.
Non-existing desktop items installed with every "full" upgrade
Non-existing desktop items installed with every "full" upgrade
You do not have the required permissions to view the files attached to this post.
- dolphin_oracle
- Developer
- Posts: 22058
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Non-existing desktop items installed with every "full" upgrade
the mx-system packages owns those desktop files. the modification hides them from the menus.
so they are present, but don't do anything.
if you are deleting them, they would only return on an update to mx-system.
so they are present, but don't do anything.
if you are deleting them, they would only return on an update to mx-system.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Non-existing desktop items installed with every "full" upgrade
MenuLibre complains rightly about those missing executable b/c of the missing TryExec= line within the desktop-entry file.dolphin_oracle wrote: Fri Feb 07, 2025 9:31 pm the mx-system packages owns those desktop files. the modification hides them from the menus.
Suggest adding TryExec= to those in order to prevent FreeDesktop Specification compliant applications (like MenuLibre) from complaining about non-existent applications.
Re: Non-existing desktop items installed with every "full" upgrade
Hi Dolphin, my question was how to prevent the installation of these desktop files if the executables are not present?
But I guess these 2 apps are "must-have" parts of the MX SOE, so they are forced on the users regardless, bummer :)
Thank you Fehlix, I will try this TryExec hack the next time
But I guess these 2 apps are "must-have" parts of the MX SOE, so they are forced on the users regardless, bummer :)
Thank you Fehlix, I will try this TryExec hack the next time
Re: Non-existing desktop items installed with every "full" upgrade
The purpose of the TryExec= is exactly this:bpr323 wrote: Sat Feb 08, 2025 5:21 pm Hi Dolphin, my question was how to prevent the installation of these desktop files if the executables are not present?
But I guess these 2 apps are "must-have" parts of the MX SOE, so they are forced on the users regardless, bummer :)
Thank you Fehlix, I will try this TryExec hack the next time
Within the desktop entry/file you have something like
Code: Select all
Exec=prog
TryExec=prog
in case the "prog" was uninstalled it may well happen that the desktop-file was not removed,
or stays with users ~/.local/share/applications/ (when you edit the desktop entry
a copy with you changes will be saved as user)
Buttom line: TryExec= is a way to let menu-system know, which "dead" entries to ignore.
And menulibre, is consistent and complains, even if Xfce-menu system doesn't care much about invalid entries.
Re: Non-existing desktop items installed with every "full" upgrade
Thanks Fehlix!
Do I need to edit the "menulibre.desktop" in ~/.local/share/applications/ and insert "Exec=prog | TryExec=prog"
It currently reads:
[Desktop Entry]
Version=1.1
Type=Application
Name=Menu Editor
Comment=Add or remove applications from the menu
Icon=menulibre
OnlyShowIn=Budgie;Cinnamon;GNOME;KDE;LXDE;LXQt;MATE;Pantheon;Unity;XFCE;
Exec=/usr/bin/menulibre
Actions=
Categories=DesktopSettings;GNOME;GTK;Utility;
Keywords=Configuration;Menu;User;
StartupNotify=true
OR
Do I need to edit the Conky and Imagemagic desktop files that are in /usr/share/applications/ folder?
b/c they are NOT in the /.local/share/applications/ folder
Do I need to edit the "menulibre.desktop" in ~/.local/share/applications/ and insert "Exec=prog | TryExec=prog"
It currently reads:
[Desktop Entry]
Version=1.1
Type=Application
Name=Menu Editor
Comment=Add or remove applications from the menu
Icon=menulibre
OnlyShowIn=Budgie;Cinnamon;GNOME;KDE;LXDE;LXQt;MATE;Pantheon;Unity;XFCE;
Exec=/usr/bin/menulibre
Actions=
Categories=DesktopSettings;GNOME;GTK;Utility;
Keywords=Configuration;Menu;User;
StartupNotify=true
OR
Do I need to edit the Conky and Imagemagic desktop files that are in /usr/share/applications/ folder?
b/c they are NOT in the /.local/share/applications/ folder
- dolphin_oracle
- Developer
- Posts: 22058
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Non-existing desktop items installed with every "full" upgrade
latest version of mx-system should make the change. was pushed yesterday.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Non-existing desktop items installed with every "full" upgrade
You posted a picture without much context. So I guess it was menulibre editor pictue.bpr323 wrote: Sun Feb 09, 2025 7:41 pm Thanks Fehlix!
Do I need to edit the "menulibre.desktop" in ~/.local/share/applications/ and insert "Exec=prog | TryExec=prog"
Do I need to edit the Conky and Imagemagic desktop files that are in /usr/share/applications/ folder?
b/c they are NOT in the /.local/share/applications/ folder
The missing TryExec is mssing within the files you have shown in the picture.
And as you seem to have removed the conky package the files was left over.
The other is similare, but needed in other place.
So I guess, either wait untill the new package mentioned above, would add the missing TryExec.
Or manually copy the files into your .locale/share/applications, and manually add TryExe=...
which would do the same I think .. or remove the files maybe this would also avoid the warning shown.
(Ahh I missed the topc title with every "full upgrade", not sure what package would have been invovled, so remove might not help
after the next recreation, so let's the new mx-system package fix the missing magic bit's.)
Re: Non-existing desktop items installed with every "full" upgrade
Great! Thanks Dolphin and Fehlix - will wait for the new mx-system upgrade to fix the issue.
BTW, I used to delete the Conky and Imagemagic desktop files when they were pushed in the past, but they would reappear regardless - hence the question.
Hope these will be fixed next time.
Thanks again, MX is the top notch distro. Love it for super strong maintainability
BTW, I used to delete the Conky and Imagemagic desktop files when they were pushed in the past, but they would reappear regardless - hence the question.
Hope these will be fixed next time.
Thanks again, MX is the top notch distro. Love it for super strong maintainability