Bug with desktop launcher in iso snapshot  [Solved]

Report Bugs, Issues and non- package Requests
Message
Author
Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Bug with desktop launcher in iso snapshot

#1 Post by Philippe Dpt35 »

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
You do not have the required permissions to view the files attached to this post.

User avatar
Adrian
Developer
Posts: 9195
Joined: Wed Jul 12, 2006 1:42 am

Re: Bug with desktop launcher in iso snapshot

#2 Post by Adrian »

Mark it executable...

Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Re: Bug with desktop launcher in iso snapshot

#3 Post by Philippe Dpt35 »

It was, of course, the first thing I did in the original!
So that's not good enough.

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Bug with desktop launcher in iso snapshot  [Solved]

#4 Post by fehlix »

Philippe 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
Xfce introduced recently an additional execution protection of desktop icons
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:
untrusted-application-launcher.jpg
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

Let us know wehter this works for you, if yes, maybe we could add forcing
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.

Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Re: Bug with desktop launcher in iso snapshot

#5 Post by Philippe Dpt35 »

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?

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Bug with desktop launcher in iso snapshot

#6 Post by fehlix »

Philippe Dpt35 wrote: Sun Dec 03, 2023 6:11 am Thank you for this solution and for your time!
Unfortunately, it doesn't work.
Are you saying the provided enable-desktop-icons launcher does not work for you?
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?
Someone would need to figure out the reason for the issue, first, before we can figure out a way to fix it.
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.

Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Re: Bug with desktop launcher in iso snapshot

#7 Post by Philippe Dpt35 »

However, I was on an MX 21.
I'll have to try it on the latest MX to see if the problem still exists.

Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Re: Bug with desktop launcher in iso snapshot

#8 Post by Philippe Dpt35 »

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 ! :happy:

Philippe Dpt35
Posts: 11
Joined: Sun Mar 13, 2022 2:39 pm

Re: Bug with desktop launcher in iso snapshot

#9 Post by Philippe Dpt35 »

So I made a script running the command at session startup and there were no more problems.

Thanks

User avatar
operadude
Posts: 1044
Joined: Tue Nov 05, 2019 12:08 am

Re: Bug with desktop launcher in iso snapshot

#10 Post by operadude »

@Philippe Dpt35 :

Just a friendly reminder :happy: :

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 :p

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

:cool:

Post Reply

Return to “Bugs and Non-Package Requests Forum”