You are not logged in.

sballe

Beginner

  • "sballe" started this thread

Posts: 3

Location: Casablanca

Occupation: Freelance financial IT

  • Send private message

1

Friday, February 22nd 2008, 8:10am

How to find location of background image

Hi
I use the advanced panel to make xplanet generate the background.
I try to find the jpg generated by the system.

I tried to use dcop with :
dcop kdesktop KBackgroundIface currentWallpaper 1

But the answer is a blank line. I tried with 0 or others but no help.

Once I will have found it, I will want to archive it.

Next question will be how to refresh it from the command line.
.

I use KDE 3.5 on slackware 12.

Thanks
Sam

Per

Beginner

Posts: 18

Location: Ă–stersund, Sweden

  • Send private message

2

Friday, February 22nd 2008, 9:50am

RE: How to find location of background image

Quoted

Originally posted by sballe
Hi
I use the advanced panel to make xplanet generate the background.
I try to find the jpg generated by the system.

I tried to use dcop with :
dcop kdesktop KBackgroundIface currentWallpaper 1

But the answer is a blank line. I tried with 0 or others but no help.

Once I will have found it, I will want to archive it.

Next question will be how to refresh it from the command line.
.

I use KDE 3.5 on slackware 12.

Thanks
Sam

I'm not sure where the file generated by xplanet is located, but you can use xplanet to generate a new file in your home directory.
To do this, go to the "KDE Control Centre" -> "Look & Feel" -> "Background" and press Advanced settings. Press "Edit" and your there you can see what command is used to generate the image. Run that command on the command line but change %x and %y to your preferred resolution and %f to the file name. Text in Quotes (") are translated from my Swedish KDE back to English and my not be 100% correct. There may be a "&& mv %f.jpg %f" at the end as well. That part shoud also be removed.
I don't know how to refress the background from the command line.

sballe

Beginner

  • "sballe" started this thread

Posts: 3

Location: Casablanca

Occupation: Freelance financial IT

  • Send private message

3

Friday, February 22nd 2008, 2:37pm

Yes, thanks it's exactly what I do to generate them by hand.

What I really want is to refresh my background on demand just for fun.
But to do that you must go to the options, just add or delete one space in the command and click OK.
I wanted to do a script for that, but I need to know where the file is to replace it. Or tell the system to replace the background without stopping the automatic refresh.

I thought it was wallpaper but as dcop does not show it I think it is elsewhere.

Its mainly to learn KDE since I use it only for one week.