Page 2 of 2

Re: Untrusted application launcher (desktop launchers)

Posted: 2018/02/04 16:24:16
by George99
This is a new Gnome security feature to prevent starting desktop apps without asking the user once for his trust.

The information is stored in the metadata of the file.

https://gitlab.gnome.org/GNOME/nautilus ... /1630f5348

Re: Untrusted application launcher (desktop launchers)

Posted: 2018/02/05 14:46:01
by DejitaruJin
George99 wrote:This is a new Gnome security feature to prevent starting desktop apps without asking the user once for his trust.
As an admin at a location with some 300 employees and 300 workstations (to say nothing of whoever's at the other buildings), where machines are reimaged about once a month, I would like to opt out of this 'feature'. There is a very specific reason I set the executable flag on those items in /etc/skel, and I'd rather my decision on the matter not be overruled.

If need be, I can write a script to fix the metadata at user login - but I do not feel I should need to do battle with the operating system.

Re: Untrusted application launcher (desktop launchers)

Posted: 2018/02/05 15:05:52
by TrevorH

Re: Untrusted application launcher (desktop launchers)

Posted: 2019/07/30 15:44:51
by l2g
I realize this post is old, but I was having the same problem and needed to automate this for an installation. Those who found this ticket searching how to automate the .desktop files to be trusted (without user interaction) and want some closure...

Just do the following:

Code: Select all

# As the user who should be trusting the launcher:
gio set /path/to/your/launcher.desktop "metadata::trusted" yes
You may need to refresh your desktop (F5), but you'll observe the file is launch-able without having to accept a Untrusted dialog box reference.

Re: Untrusted application launcher (desktop launchers)

Posted: 2020/07/29 17:39:29
by jtome7
The same problem is happening two years later with versions up to and including CentOS Linux 7.8

It's a pain to have to click on each and every Desktop Icon to say "Trust and Launch"