You are not logged in.

#1 2022-12-16 21:27:00

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

[Solved]Xfce 4.18 - How to trust .desktop files in shell

Hallo,
starting with 4.18 all .desktop files are "untrusted" now and when invoking them a window appears asking to "trust". That's a new "trust" mechanism that adds a 'metadata::xfce-exe-checksum' attribute (gio info my.desktop). I have too many .desktop files to manually set it via gui. Also, icons do not show until trusted that is annoying.

How can i "mass-trust" .desktop files via shell?

Last edited by Maniaxx (2022-12-17 00:19:14)


sys2064

Offline

#2 2022-12-16 22:31:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved]Xfce 4.18 - How to trust .desktop files in shell

I'm kinda tying to understand what that should achieve and while it might sounds stupid (well, it does) - does "chmod +x file.desktop" suffice?
(And apparently this should not affect anything in $XDG_DATA_DIRS anyway)

Online

#3 2022-12-16 23:24:07

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved]Xfce 4.18 - How to trust .desktop files in shell

Its already +x. Its gvfs based or something.
I've also asked in the xfce forum.

$ gio info Black.desktop
[...]
metadata::xfce-exe-checksum: 945c32c14841d9abf549346f582f421e8344cdd2465dadb5a18534cfc1883d14

xfce-trust97eaz.png

Last edited by Maniaxx (2022-12-16 23:32:10)


sys2064

Offline

#4 2022-12-17 00:18:59

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved]Xfce 4.18 - How to trust .desktop files in shell

And that is actually all that's needed indeed. There is no high-level command though so it has to be done manually. Solution here.


sys2064

Offline

Board footer

Powered by FluxBB