Running gsettings as root

Josef Wolf jw at raven.inka.de
Wed Aug 17 10:41:43 UTC 2016


On Wed, Aug 17, 2016 at 08:07:42PM +1000, Karl Auer wrote:
> On Wed, 2016-08-17 at 11:21 +0200, Josef Wolf wrote:
> > I want to do lots of configuration settings as root in the background
> > [...]
> > I need a command that works independently of whether the user is
> > logged in or not.
> 
> You could run your scripts from the system crontab,

This is actually what I do.

But the problem is NOT to run the scripts as the specified user.

The problem is that they won't work while the user is logged in because
dbus-launch starts a new dbus-instance and the changes done by gsettings will
be discarded as soon as dbus-launch exits.

-- 
Josef Wolf
jw at raven.inka.de




More information about the ubuntu-users mailing list