While I created a little floppy-utility for my pinboard, that checks if
the floppy is mounted and opens a filer window with the mount point, I
noticed a limitation of the current implementation of the drag'n'drop
behaviour for ROX-Applications.
There is no way to differntiate between moving and copying (or linking),
that is, right-click-drag or middle-click-drag.
Maybe we could define a convention to indicate the kind of the drag
operation to the called script?
I'd suggest an environment variable (e.g. "ROX_DROP_ACTION") that would
be set by rox and can be checked for the indented action by the script.
For example (roughly):
case "$ROX_DROP_ACTION" in
copy) cp "$@" /mnt/floppy ;;
move) mv "$@" /mnt/floppy ;;
link) ln -s "$@" /mnt/floppy ;;
# do the default click action here
If the dragged itme is no file but some data, the data should be provided
on the standard input to the script and another variable should be set
(or maybe like the REQUEST_METHOD CGI variable a ROX_DROP_METHOD?).
What are your opinions?
... 'cos 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@...