Changing the backdrop

Brian J. Tarricone bjt23 at cornell.edu
Tue Nov 8 21:34:20 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/8/2005 12:53 PM, Iain Scurrah wrote:
> Hi,
> 
> Many thanks for the hardwork of all involved in the Xfce project. I'm a new 
> convert, (having found out that no desktop icons does not necessarily mean 
> "very scary - let me out please...").
> 
> One hangover from my KDE days though, is a desire to change my backdrop 
> regularly...
> 
> Currently I've got a list of all the photos I want to see sometime as a 
> backdrop and a little script in ~/Desktop/Autostart/change_backdrop.sh
> 
> #!/bin/bash
> while  [ 0 ]
> do
>    sleep 300
>    nice xfdesktop -reload
> done
> 
> Dead simple - and it works well, every 5 mins, I get a new backdrop. 
> 
> The only problem is that it never ends. After Exiting Xfce and re-logging in, 
> either as myself, or as my wife, the script keeps running. I would have two 
> copies of this script running, my wife has one (and she uses KDE (although 
> she wouldn't be able to tell you that)).
> 
> Is there anyway I can get Xfce to kill this script on exiting Xfce? Maybe I 
> could use the session manager to start the (or similar) script when I login, 
> but it would need to kill it on logout...

Hmm, interesting problem.  Easiest (though not cleanest) fix would be to
modify xfce's xinitrc, and run your script (with an & at the end) from
there.  It should get killed properly on session quit that way.  See the
docs for what you need to do to copy and edit xinitrc.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFDcQvM6XyW6VEeAnsRAsU+AKCyawWpb5Kkb9W8ziIKsViulfkCjQCg68sT
m2OgIEoKXNjEg9hfdpkFS/0=
=72ng
-----END PGP SIGNATURE-----



More information about the Xfce mailing list