Comment 2 for bug 1712581

Revision history for this message
Iain Lane (laney) wrote : Re: [Bug 1712581] [NEW] Cannot execute oem-config-prepare - application is not trusted

On Wed, Aug 23, 2017 at 01:29:21PM -0000, Jean-Baptiste Lallement wrote:
> Public bug reported:
>
> artful desktop 20170823
>
> When the user clicks on the oem-config-prepare-icon on the desktop, it
> cannot be executed directly and there is a dialog saying that the
> application is not trusted (cf screenshot - in french)

I'm not working on this (at least not right now), but in case somebody
wants to pick it up, see scripts/casper-bottom/25adduser in casper.
Specifically, to mark the .desktop file as trusted, run something like:

    if [ -x "/root/usr/bin/dbus-run-session" ] && [ -x "/root/usr/bin/gio" ]; then
        chroot /root sudo -i -u $USERNAME dbus-run-session -- gio set /home/$USERNAME/Desktop/$(basename "$file") metadata::trusted true
    fi

Obviously the chroot bit may or may not be appropriate - I don't know
how this desktop file is installed.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]