Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Software

Software Help on software problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-11-02, 12:06 PM CST
mattdm Offline
Registered User
 
Join Date: Jun 2005
Posts: 2
gconftool-2 won't swap wallpaper from cron

I posted this on a Gnome forum, but got no response so I'm trying here....

I am trying to make a script that downloads a picture (my daughter's baby pictures, actually) at random from a web site and sets it as my gnome desktop background. I've seen multiple people suggest

Code:
gconftool-2 --type=string --set /desktop/gnome/background/picture_filename $FILENAME
to change the wallpaper, so I made a nice little script that downloads the wallpaper and does that. Works great from the command line, but fails from cron.

After poking around a little bit, I discovered that `gconftool-2 --ping` returns 2 ("gconfd not running") when run from cron -- so it seems clear that that's the issue: the script either doesn't know how to or isn't allowed to access the desktop-session gconfd.

How does one get around this?

Perhaps it's an environment-specific thing, so I should mention that I'm using Gnome 2.8 on Fedora Core 3.

Thank you very much!
__________________
-- Matthew Miller, http://mattdm.org/
Reply With Quote
  #2  
Old 2009-06-22, 09:00 PM CDT
wt6g's Avatar
wt6g Offline
Registered User
 
Join Date: Jun 2005
Posts: 133
Your use of the command is just a bit off.

Try this:

Quote:
gconftool-2 --type string --set /desktop/gnome/background/picture_filename $FILENAME
__________________
Len Umina
El Dorado Hills, CA
WT6G

Last edited by wt6g; 2009-06-22 at 09:02 PM CDT. Reason: update
Reply With Quote
  #3  
Old 2009-11-03, 01:30 PM CST
earlati's Avatar
earlati Offline
Registered User
 
Join Date: Dec 2007
Location: bergamo. it
Age: 50
Posts: 9
linuxfedorafirefox
Nemmeno io ci riesco , ma provo a condividere le prove che ho fatto, nel caso ti suggeriscano qualcosa.
Sembra che i valori impostati da gconftool vengano memorizzati in un area diversa se lanciati da crontab

se provi ad interrogare la variabile picture_filename da crontab ottieni un dverso valore da quello ritornato dallo stesso comando eseguito da terminale.

Io per la prova ho usato questo comando:
msg=$( gconftool-2 --get /desktop/gnome/background/picture_filename ); logger -t XXX "FILE: $msg "

Sul motivo non so' pero' risponderti, pero' se scarico tutto l' archivio
( comando gconftool-2 --recursive-list / > /tmp/pluto )
da crontab mi legge un' area system , mentre da terminale legge un' area apps.
Reply With Quote
  #4  
Old 2009-11-03, 02:36 PM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxubuntufirefox
Interesting, so you dug up a four year old thread, my Italian is not great but if I understood correctly, just to tell him that you're not sure why it happens but can confirm that it does?

lmfao!
Reply With Quote
  #5  
Old 2009-11-03, 03:03 PM CST
earlati's Avatar
earlati Offline
Registered User
 
Join Date: Dec 2007
Location: bergamo. it
Age: 50
Posts: 9
linuxfedorafirefox
credo di aver trovato il bandolo della matassa.
I processi lanciati da crontab non sannno comunicare con il server dbus
per consentirglielo occorre passargli la variabile DBUS_SESSION_BUS_ADDRESS
che e' qualcosa del genere
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-lfwRnjPyq7,guid=e5bed3dbae44d22d16f754924af07116

per farlo da programma, ho incluso una funzione in uno script bash che poi ho eseguito


Code:
# ======================================================
function export_variables
{
   user=$( whoami )
   pid=$( pgrep -u $user gnome-panel )
 
   for dbusenv in $pid; do
 	DBUS_SESSION_BUS_ADDRESS=$( grep -z DBUS_SESSION_BUS_ADDRESS /proc/$pid/environ | sed -e 's/DBUS_SESSION_BUS_ADDRESS=//' )

 	data="DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
        eval " export $data"
    done
}
# ======================================================
export_variables
# ======================================================
Reply With Quote
  #6  
Old 2009-11-03, 03:30 PM CST
earlati's Avatar
earlati Offline
Registered User
 
Join Date: Dec 2007
Location: bergamo. it
Age: 50
Posts: 9
linuxfedorafirefox
Quote:
Originally Posted by Dies View Post
Interesting, so you dug up a four year old thread, my Italian is not great but if I understood correctly, just to tell him that you're not sure why it happens but can confirm that it does?

lmfao!
Hi Dies, as you see, there is someone who is ready to read also an old thread.

I'm sorry for the italian, but I go over another thread on ububtu italian forum, and I just copy and paste here the same think I writed there.
Reply With Quote
  #7  
Old 2009-11-04, 06:08 PM CST
scottro's Avatar
scottro Online
Community Manager -- Banned by popular request.
 
Join Date: Sep 2007
Location: NYC
Posts: 7,575
linuxopera
Ermm, post before the Italian post was from this year. Maybe you meant 4 months? Yes, the post before that was 4 years old, but whatever.
@earlati, this is an English language forum, which of course, can be difficult for non-English speakers. However, do your best, and you'll find that most people are very understanding of language difficulties.
@wt6g, yeah, a lot of us have accidentally posted to old threads. I wouldn't worry about it.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM CM's (or any other forum member) with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #8  
Old 2009-11-04, 11:20 PM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxfedorafirefox
Quote:
Originally Posted by scottro View Post
Ermm, post before the Italian post was from this year. Maybe you meant 4 months? Yes, the post before that was 4 years old, but whatever.
No, that post doesn't even count in my mind because it doesn't provide a solution or address the real issue.

And I meant nothing but my post.

It was just hilarious to me that someone would post to such an old thread in a language most won't understand just to confirm the issue.

Sorry. What can I say... I am happy the solution was posted though, anyone can understand that.
Reply With Quote
  #9  
Old 2009-11-05, 01:15 PM CST
earlati's Avatar
earlati Offline
Registered User
 
Join Date: Dec 2007
Location: bergamo. it
Age: 50
Posts: 9
linuxfedorafirefox
Hi guys.
It was an old post, true, but it wasn't a close post ,, and also this was true.
What's wrong in reusing an old , unsolved post ?

About the Italian language I already express my sorry in my last post. I just followed the same issue on another thread on Italian site , and I simple forgot this thread was an english one when I copy and pasted here..

To hilarious man I want just saying that searching a solution should also be a team job, a job in which everybody share what he know in the hope that this can help other to guess the solution.
Bye
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gconftool-2 with FC10 problems den23513 General Support 1 2008-12-10 09:42 AM CST
gconftool-2 glennzo General Support 2 2008-12-07 08:24 AM CST
/etc/cron.daily/000-delay.cron kwhiskers General Support 0 2007-01-27 12:53 PM CST
[INFO]: If cron (vixie-cron) seems to do nothing (doesn't work) ... Keith G. Robertson-Turner gmane.linux.redhat.fedora.general 0 2006-06-18 07:50 PM CDT
gconftool-2 jim Software 2 2006-03-20 07:27 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 06:45 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages thanks to vB Enterprise Translator