LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2005, 05:17 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
ivman, rox, and automount... "cannot open display"


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
 
Old 11-15-2005, 04:07 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
One work-around you might consider is running another instance of ivman. If you create per-user ivman configuration files under $HOME/.ivman/, then when ivman runs as that user, it will only use those files.

So, you could put try putting the rules to do your ROX stuff in $HOME/.ivman/IvmConfigActions.xml and add a line to your ~/.xinitrc (or ~/.xsession, or a symlink for ROX-Session, or however you start your X session) to run ivman. That way, you will have two instances of ivman running - one that does the mounting as root and another that does your X stuff as you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
xset: unable to open display "mycomputer.mynetwork:0.0" nicolaeancuta Linux - Networking 2 07-13-2005 01:39 AM
"Can't open display" error when try to use a program remote heande Linux - Newbie 2 03-11-2005 10:13 AM
FC3: no video: "can't open X11 display" Kropotkin Fedora 3 11-10-2004 11:25 AM
unable to open display "24.228.61.72:0.0" while installing oracle remotely cheeku Linux - Newbie 3 08-13-2004 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration