Hi,
I have a bit of a problem. IVMAN runs as root, which automounts my devices. IVMAN is automounting them properly, and I have setup a script that does something along the lines of "touch ~/afile" and it puts "afile" into /root because IVMAN is running as root. Well, I want IVMAN to add a folder to my desktop using the script I made "rox.add"
If i open up a terminal as a user, and run the "rox.add" script, it adds the icon to my desktop perfectly, but, when I assign IVMAN to run the script, it cannot put the icon on my desktop since it is running as root.
If i do: "rox.add", i get:
(ROX-Filer:13830): Gtk-WARNING **: cannot open display:
my local hostname is "monster", if i ping "monster" i am pinging myself.
So, I did this as the regular user:
Code:
hedpe@monster ~ $ export DISPLAY=":0.0"
hedpe@monster ~ $ xhost +monster
monster being added to access control list
And now as root:
Code:
monster hedpe # rox.add /mnt/laptophd/ 100 100 Test
(process:13967): Gdk-WARNING **: locale not supported by C library
(ROX-Filer:13967): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
monster hedpe #
** (ROX-Filer:13972): CRITICAL **: pinboard_pin_with_args: assertion `current_pinboard != NULL' failed
Trying to use sudo:
Code:
monster hedpe # sudo -u hedpe rox.add /mnt/laptophd/ 100 100 Test
(ROX-Filer:13977): Gtk-WARNING **: cannot open display:
And finally one last condition, exporting a new DISPLAY as root:
Code:
monster hedpe # export DISPLAY="monster:0.0"
monster hedpe # rox.add /mnt/laptophd/ 100 100 Test
(process:14039): Gdk-WARNING **: locale not supported by C library
(ROX-Filer:14039): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(ROX-Filer:14039): Gtk-WARNING **: cannot open display:
monster hedpe #
Any suggestions would be greatly appreciated!
Thanks!
George