Page 1 of 1

How to set mark "Trust this executable" from bash?

Posted: 08 Aug 2023, 14:01
by inukaze
Hi there, i want to know which command(s) i should use for mark this from bash

Image

On spanish «Confiar en este ejecutable».
Translated with google
To english "Trust this executable"

The thing is i try various commands and nothing works like :

Code: Select all

gio set peazip.desktop "metadata::trusted" yes

Code: Select all

gio set "$PWD/peazip.desktop" "metadata::trusted" yes

Code: Select all

gio set "$PWD/peazip.desktop" "metadata::trusted" true

Code: Select all

chown $USER:users ./peazip.desktop

Code: Select all

sudo chown $USER:users "$HOME/.local/share/gvfs-metadata/home"

Code: Select all

sudo chown $USER:users "$HOME/.local/share/gvfs-metadata/uuid-23b2374a-ee65-49dc-9abd-562449624a68"

Code: Select all

chmod a+o+x peazip.desktop
Which command(s) i should use for mark that ".desktop" file with "Trust this executable" ?

Image

How to set mark "Trust this executable" from bash?

Posted: 08 Aug 2023, 19:46
by tome
TrustMake this executable?

How to set mark "Trust this executable" from bash?

Posted: 29 Sep 2023, 08:51
by samuelmurphy
I think you can try this command:

Code: Select all

gio set <path-to-desktop-file> metadata::trusted true