1 """An easy way to get ROX-Filer to do things."""
3 # Note: do a double-fork in case it's an old version of the filer
4 # and doesn't automatically background itself.
6 """Run a new process and forget about it."""
7 from os
import fork
, _exit
, execvp
, waitpid
18 print "Warning: exec('%s') failed!" % argv
[0]
21 print "Error: fork() failed!"
24 print "Error: fork() failed!"
28 "Open 'dir' in a new filer window."
29 _spawn(('rox', '-d', dir))
32 """'file' may have changed (maybe you just created it, for example). Update
33 any filer views of it."""
34 _spawn(('rox', '-x', file))
37 """Open a directory and draw the user's attention to this file. Useful for
38 'Up' toolbar buttons that show where a file is saved."""
39 _spawn(('rox', '-s', file))