After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615486 - Feature request: Can't use gconftool-2 from cron nor change settings for another user as SU
Feature request: Can't use gconftool-2 from cron nor change settings for anot...
Status: RESOLVED DUPLICATE of bug 555745
Product: GConf
Classification: Deprecated
Component: gconf
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-12 02:52 UTC by narnie
Modified: 2010-04-12 10:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description narnie 2010-04-12 02:52:17 UTC
gconftool-2 evidently now uses DBUS variables that are not set if run from cron, some hoops must be jumped through to make it work. As a corollary to this, since a gnome session must be running to utilize gconftool-2 for said user running the program by having to ascertain the value of DBUS_SESSION_BUS_ADDRESS for that session.

I propose modifying gconftool-2 such that it could be run as super user on behalf of another user. This would allow the su (eg, during an install script) to changes a user's settings without having to have that user's gnome session running.

Something like:

sudo gconftool-2 -u user1 -s /desktop/gnome/background/picture_filename -t string pic.png

With thanks,
Narnie
Comment 1 Christian Persch 2010-04-12 10:45:02 UTC

*** This bug has been marked as a duplicate of bug 555745 ***