your script works, but you do both steps required to put a backdrop
A program, that sets the backdrop is initially called twice:
- Once by the user. It then should tell ROX that it wants to be a backdrop
app using SOAP
- then by ROX with the '--backdrop' argument. It should then echo the
backdrop command to stdout (where ROX listens)
Therefore, you have to query in your script, wether it is called with
the '--backdrop' argument. Only then it should echo the backdrop command.
ROX saves the backdrop application on a per-pinboard basis (I think), so
your script will be called again (with the '--backdrop' argument) when ROX
starts again with the corresponding '-pinboard' argument.
I have written a "Wallpaper" replacement which uses the new backdrop
system, but it is not quite finished yet. I attach it nethertheless a
working example (it is written in Python).
The problem with the new backdrop system is, that, because two instances
of the backdrop app are run (and the second can only be run by ROX), you
have to determine the filename of the backdrop image in the second
instance, while probably the user gave the filename as an argument to
the first instance.
There are several possibilities:
1) The second instance determines/generates the filename alone (e.g
xplanet, a random image chooser etc.)
2) The second instance asks the user via a GUI for the filename :-(
3) The first instance communicates the filename the user requested somehow
to the second instance, either by:
a) writing the filename to a file (which is what my example does)
b) some other means of IPC (sockets, SHM)
Yes, this is complicated. I'd say, rather too complicated. Therefore my
ROX should accept another SOAP message, by which backdrop applications
can tell the filename and the display mode directly to ROX, when they only
want to set a static image as the backrop. ROX should then store this
filename and _not_ the application in the pinboard file.
What thinks thou, Thomas?
(I suggest moving this topic to rox-devel)
On Wed, 12 Jun 2002, Arnaud Calvo wrote:
> Hi !
> I've finally succeeded to script with bash a very basic "xli like" :
> [~/PYTH] $ : cat AppRun
> rox --RPC << EOF
> <?xml version="1.0"?>
> <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
> <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
> /bin/echo "centre /home/arnaud/docs/images/backgrounds/torrent.jpg"
> [~/PYTH] $ :
> Yes, it works, but :
> Vous ne pouvez fixer l'image de fond que sur une image ou sur un programme
> qui sait comment manier l'image de fond de ROX-Filer.
> How can I suppress this error message, though the background is OK ?
> Thanks !
... cause we all have wings, but some of us don't know why! (INXS)
Christopher Arndt [t] +49 173-9542751
system administration [w] http://www.chrisarndt.de
& linux training [e] chris.arndt@...