Setting dconf values as admin
Josef Wolf
jw at raven.inka.de
Wed Oct 25 20:28:09 UTC 2017
Hello,
On Wed, Oct 25, 2017 at 01:51:38PM +0200, Ralf Mardorf wrote:
> On Wed, 25 Oct 2017 13:26:26 +0200, Josef Wolf wrote:
> > https://wiki.gnome.org/action/show/Projects/dconf/SystemAdministrators?action=show&redirect=dconf%2FSystemAdministrators
I keep this link as a reference
> > $ sudo cat /etc/dconf/db/ibus.d/01-cfsvn-global-defaults
> > [org/gnome/desktop/background]
> > picture-uri='file:///etc/lightdm/my-wallpaper.jpg'
> >
> >But this don't seem to have any effect. I have run "dconf update" as
> >root and as ordinary user. Still no effect.
This was my original attempt
> sudo -u user_name dbus-launch dconf load /org/gnome/desktop/background/ < /etc/dconf/db/ibus.d/01-cfsvn-global-defaults
>
> or
>
> cat /etc/dconf/db/ibus.d/01-cfsvn-global-defaults | sudo -u user_name dbus-launch dconf load /org/gnome/desktop/background/
>
> resp. depending on the read permissions
>
> sudo cat /etc/dconf/db/ibus.d/01-cfsvn-global-defaults | sudo -u user_name dbus-launch dconf load /org/gnome/desktop/background/
All of those methods have the same problem:
If the user already has a dbus session runnning, a new dbus connection will be
started. Write operations on this new dbus session will go to /dev/null.
Thus, what I am looking for is:
- if the user already has a dbus session running, connect to this already
existing dbus session
- if there is no dbus session for this user, create a new one
What would be the clean way to do this?
--
Josef Wolf
jw at raven.inka.de
More information about the ubuntu-users
mailing list