|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Failed to contact configuration serverHey All!
I've got a Python script that changes my desktop background and it works great, when I run it from the CLI. However, I want my background to be changed automatically, so I placed a call to this script in my `crontab' file. I know the script is running, because I get email messages from `cron', but the messages contain the following error: glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 1: Not running within active session) Why is it that this script works fine and changes the desktop background when I manually run it, but I get this error when the same script is run as a `cron' job? Can you please help. Sean Carrick -------------------------------------------- Home: 309-244-7509 Cell: 309-202-9084 Email: BrknShldr@... smcarrick@... carricksm@... smcarrick@... MAALinux@... ------- Proud to be 100% Microsoft free ------- _______________________________________________ gconf-list mailing list gconf-list@... http://mail.gnome.org/mailman/listinfo/gconf-list |
|
|
Re: Failed to contact configuration serverHey Sean,
This same problem has killed my own desktop changing project: https://launchpad.net/gnome-wallchanger I've looked for solutions, and there ain't any easy ones. The measure of stopping gconf changes via processes that are outside of the GUI instance is a royal pain for the crontab. If you can add some of the ENV vars, it should work. The only real stable solution is to develop a crontab that runs inside of gnome when you log on. Or just convince gnome devs to abandon gconf in favour of yaml XDG config files. (heh) I've heard the advice from certain devs who will suggest that you should create a daemon process that runs all the time. Although that rather defeats the point of having infrastructural components which save the dev time, and the user computer's resources. Oh well, back to doing something more useful, beating head against a brick wall. Regards, Martin On Wed, 2009-02-11 at 08:07 -0600, Sean Carrick wrote: > Hey All! > > I've got a Python script that changes my desktop background and it > works great, when I run it from the CLI. However, I want my > background to be changed automatically, so I placed a call to this > script in my `crontab' file. I know the script is running, because I > get email messages from `cron', but the messages contain the following > error: > > glib.GError: Failed to contact configuration server; some possible > causes are that you need to enable TCP/IP networking for ORBit, or you > have stale NFS locks due to a system crash. See > http://www.gnome.org/projects/gconf/ for information. (Details - 1: > Not running within active session) > > Why is it that this script works fine and changes the desktop > background when I manually run it, but I get this error when the same > script is run as a `cron' job? Can you please help. > > Sean Carrick > -------------------------------------------- > Home: 309-244-7509 > Cell: 309-202-9084 > Email: > BrknShldr@... > smcarrick@... > carricksm@... > smcarrick@... > MAALinux@... > > ------- Proud to be 100% Microsoft free ------- > _______________________________________________ > gconf-list mailing list > gconf-list@... > http://mail.gnome.org/mailman/listinfo/gconf-list _______________________________________________ gconf-list mailing list gconf-list@... http://mail.gnome.org/mailman/listinfo/gconf-list |
|
|
Re: Failed to contact configuration serverHi,
The problem is that "cron" does not run stuff inside your login session, so your script can't notify nautilus that configuration has changed from "cron" The most obvious solution is to just write a program to run inside your login session. A quite simple pygtk app could do this, for example. It would start up, add a timeout every however often, enter main loop; in the timeout just make a couple of gconf API calls. Probably a 100-line python script or less. Then drop that (well, a .desktop file pointing to it) in the autostart folder. Havoc _______________________________________________ gconf-list mailing list gconf-list@... http://mail.gnome.org/mailman/listinfo/gconf-list |
|
|
Re: Failed to contact configuration serverHi,
On Wed, Feb 11, 2009 at 9:07 AM, Sean Carrick <brknshldr@...> wrote: > Hey All! > > I've got a Python script that changes my desktop background and it works > great, when I run it from the CLI. Other people have already chimed in on this thread, but I just wanted to add that gnome supports slide show backgrounds already. You just need to set your background to be a specially formatted xml file instead of an image. --Ray _______________________________________________ gconf-list mailing list gconf-list@... http://mail.gnome.org/mailman/listinfo/gconf-list |
| Free embeddable forum powered by Nabble | Forum Help |