Bug with desktop launcher in iso snapshot [Solved]
-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Bug with desktop launcher in iso snapshot
Hello,
since version 21.1 which was working, there is a problem with launchers on the desktop, but only with iso built with mx shapshot :
sorry, it's in french Do you have a solution to solve this problem?
Best regards
since version 21.1 which was working, there is a problem with launchers on the desktop, but only with iso built with mx shapshot :
sorry, it's in french Do you have a solution to solve this problem?
Best regards
You do not have the required permissions to view the files attached to this post.
Re: Bug with desktop launcher in iso snapshot
Mark it executable...
-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Re: Bug with desktop launcher in iso snapshot
It was, of course, the first thing I did in the original!
So that's not good enough.
So that's not good enough.
Re: Bug with desktop launcher in iso snapshot [Solved]
Xfce introduced recently an additional execution protection of desktop iconsPhilippe Dpt35 wrote: Fri Dec 01, 2023 1:26 pm Hello,
since version 21.1 which was working, there is a problem with launchers on the desktop, but only with iso built with mx shapshot :
sorry, it's in french
bug-lanceur.jpg
Do you have a solution to solve this problem?
Best regards
by requiring now in addition to
* the desktop file is executable (chmod +x ...)
also that
* the checksum (sha256sum) of the desktop-file is saved and available as
metadata::xfce-exe-checksum.
Now when adding a desktop files from the menu or coping to the desktop
a popup about "Untrusted application launcher" is shown: After confirmation, both the desktop files is set executable (chmod +x)
and the metadata::xfce-exe-checksum is generated.
But the issue might be, that the metadata is not yet saved onto disk
but kept still in memory by Xfce.
Running now MX-Snapshot to create a personal snapshot
may not see yet the saved matadata.
Which means the ISO may not have the metadata::xfce-exe-checksum
saved on disk and the ISO but also the installed system would not
have the desktop icons as "trusted".
Now what?
You may try manually setting the trust and logout/ login so the meta-data
are save on disk.
Alternatively you may try this "Enable Destop Icons" launcher,
which should force to get the meta data saved:
Save the below launcher e.g .as enable-desktop-icons.desktop
Code: Select all
[Desktop Entry]
# fehlix : 02.12.2023
# filename: enable-desktop-icons.desktop
# mx-forum: https://forum.mxlinux.org/viewtopic.php?p=754769#p754769
Version=1.0
Name=Enable Desktop Icons
Name[fr]=Activer les icônes de bureau
Comment=Make Xfce desktop icons executable.
Comment[de]=Xfce-Desktop-Symbole ausführbar machen.
Comment[fr]=Rendre les icônes du bureau Xfce exécutables.
Exec=sh -c 'cd "$(xdg-user-dir DESKTOP)"; for i in *.desktop; do chmod +x "$i" && gio set -t string "$i" metadata::xfce-exe-checksum $(sha256sum "$i" | cut -d" " -f1); done && notify-send --icon=xfce4_xicon1 "Desktop Icons enabled"'
Icon=xfce4_xicon1
Type=Application
Categories=Utility;
OnlyShowIn=XFCE;
Path=
Terminal=false
StartupNotify=false
of saving metadata to disk with MX Snapshot, in case that would help.
Thanks
You do not have the required permissions to view the files attached to this post.
-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Re: Bug with desktop launcher in iso snapshot
Thank you for this solution and for your time!
Unfortunately, it doesn't work.
I suspected this, as I had restarted my VM several times after making the desktop launchers executable and before creating the iso.
The information could therefore have been saved.
Can we expect this bug to be resolved, or should we switch to a desktop environment other than XFCE?
Unfortunately, it doesn't work.
I suspected this, as I had restarted my VM several times after making the desktop launchers executable and before creating the iso.
The information could therefore have been saved.
Can we expect this bug to be resolved, or should we switch to a desktop environment other than XFCE?
Re: Bug with desktop launcher in iso snapshot
Are you saying the provided enable-desktop-icons launcher does not work for you?Philippe Dpt35 wrote: Sun Dec 03, 2023 6:11 am Thank you for this solution and for your time!
Unfortunately, it doesn't work.
Someone would need to figure out the reason for the issue, first, before we can figure out a way to fix it.Philippe Dpt35 wrote: Sun Dec 03, 2023 6:11 am I suspected this, as I had restarted my VM several times after making the desktop launchers executable and before creating the iso.
The information could therefore have been saved.
Can we expect this bug to be resolved, or should we switch to a desktop environment other than XFCE?
So, if you can confirm, that the enable-desktop-icons desktop launcher works to make all desktop
icons executable without a confirmation popup window, we would be one step further in that directions.
Othewise, you can always try KDE or fluxbox, instead.
-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Re: Bug with desktop launcher in iso snapshot
However, I was on an MX 21.
I'll have to try it on the latest MX to see if the problem still exists.
I'll have to try it on the latest MX to see if the problem still exists.
-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Re: Bug with desktop launcher in iso snapshot
The problem is identical in Mint 23.1 and 21.
If you apply the enable-desktop-icons script in the iso, all launchers launch without asking for authorization !
If you apply the enable-desktop-icons script in the iso, all launchers launch without asking for authorization !

-
- Posts: 11
- Joined: Sun Mar 13, 2022 2:39 pm
Re: Bug with desktop launcher in iso snapshot
So I made a script running the command at session startup and there were no more problems.
Thanks
Thanks
Re: Bug with desktop launcher in iso snapshot
@Philippe Dpt35 :
Just a friendly reminder
:
If someone has provided a solution for your issue, you can mark it as: [Solved]
You can do so by going to the entry that provided your solution, such as, entry #4 or #6 (one of Fehlix's posts), and at the top of that specific entry, to the right, you will see a number of icons: the exclamation mark (to report a post), the quote icon (to quote), and the check (or "v") icon for Marking the topic as Solved. Hit the check/"v" icon, and your post will be marked as "[Solved]" !!!
All of this info can be found in the "Rules of these forums" post by richb (administrator):Rules of these forums
I find this marking very helpful to me as a regular user, since I can immediately see on the Board Index that someone's issue actually has a resolution. If I see that, I usually jump to that post right away, since it may help me as well
I found your topic very useful, and am glad that the Forum provided you a solution

Just a friendly reminder

If someone has provided a solution for your issue, you can mark it as: [Solved]
You can do so by going to the entry that provided your solution, such as, entry #4 or #6 (one of Fehlix's posts), and at the top of that specific entry, to the right, you will see a number of icons: the exclamation mark (to report a post), the quote icon (to quote), and the check (or "v") icon for Marking the topic as Solved. Hit the check/"v" icon, and your post will be marked as "[Solved]" !!!
All of this info can be found in the "Rules of these forums" post by richb (administrator):Rules of these forums
I find this marking very helpful to me as a regular user, since I can immediately see on the Board Index that someone's issue actually has a resolution. If I see that, I usually jump to that post right away, since it may help me as well

I found your topic very useful, and am glad that the Forum provided you a solution

