Running gsettings as root

Karl Auer kauer at biplane.com.au
Wed Aug 17 10:59:13 UTC 2016


On Wed, 2016-08-17 at 12:41 +0200, Josef Wolf wrote:
> On Wed, Aug 17, 2016 at 08:07:42PM +1000, Karl Auer wrote:
> > 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.

Maybe you misunderstand - the system crontab runs jobs as root AND can
run jobs as any other specified user. So jobs run from the system
crontab can be run as root regardless of whether some other user is
logged in or not.

> 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.

I have no idea why that is relevant. I'm not saying it is not relevant,
just that I don't understand why it would be. Why is that relevant?

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list