I don't use multiple desktops, instead I just use multiple pinboards and flip between them using rox -p <pinboardname>
Create a rox app folder and in that folder create a file called AppRun with content something like
Code: Select all
#!/bin/sh
rox -p /home/user/.pinboards/family.pb
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">
<PinboardAdd>
<Path>$1</Path>
<X>554</X>
<Y>128</Y>
<Label>`basename $1`</Label>
<Args></Args>
<Locked>false</Locked>
<Shortcut></Shortcut>
</PinboardAdd>
</env:Body>
</env:Envelope>
EOF
Make the file executable and in that same rox app directory drop in a icon (.png or whatever) for that rox app, renaming the file to .DirIcon
Now in rox whenever you run that rox app (click on the icon), it will flip to that pinboard. If however you drag a file or folder onto that icon in rox then it will create a pinboard entry for that file/folder on the pinboard (the above is hard coded to drop the icon in at X=554 and Y=128).
The pinboard from where that file/folder came will still also have a icon for that dragged/dropped file/folder, i.e. its a form of copy rather than move. If you wanted it to be more of a move type action then you'd add additional SOAP code into AppRun ... something like
Code: Select all
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">
<PinboardRemove>
<Path>/home/user/.pinboards/office.pb</Path>
<Label>`basename $1`</Label>
</PinboardRemove>
</env:Body>
</env:Envelope>
EOF
I have a rox panel and with my different pinboard rox apps (AppDirs similar to the above) have been included (dragged/dropped onto the rox panel). So when I'm on one pinboard (desktop) and want to drag a file or folder to another pinboard (desktop), I just drag it to the rox panel icon for the target desktop and drop it there, and it switches to that desktop (pinboard) with the dropped icon showing there.