You are not logged in.

#1 2008-08-06 14:31:48

Koiti
Member
Registered: 2008-05-03
Posts: 6

Using apps with a login during another login's session.

Kinda stupid question, but I can't run apps with another user. When I try to run them from the terminal, after a su [other user] + pass, I get the following message:

[koiti@myhost ~]$ su lucy
Password: 
[lucy@myhost koiti]$ firefox
No protocol specified
Error: cannot open display: :0.0

Any ideas?

Also, but not related (i guess), I use the dual-head configuration in my xorg.conf, and the issues continues...

I use thunar as my file manager, and custom actions to open my video files in the secondary screen (a 21" TV), adding "DISPLAY=:0.1" before the actual command, but it only works to the first login.
For instance: I turn my computer on, at GDM I log in as "koiti", then switch users, still logged on as "koiti", new login as "lucy" (my wife, hehehe).

The first login (koiti) can use the "DISPLAY=:0.1" variable to open the videos in the secondary screen, because it was the first to log in. If I try to use the same command as "lucy" I get the following error message in terminal:

 [lucy@myhost ~]$ DISPLAY=:0.1 vlc
VLC media player 0.8.6i Janus
No protocol specified
Error: Unable to initialize gtk, is DISPLAY set properly?
[lucy@myhost ~]$

If I log in as "lucy" when I turn the computer on, i got these messages in the other login.

I guess this is a "permission related" issue, because i can run any app as root.

Any help will be appreciated.

Cheers from Japan.

Offline

#2 2008-08-07 17:28:03

Peyton
Member
Registered: 2007-07-22
Posts: 36
Website

Re: Using apps with a login during another login's session.

Try this:

$ gksudo -u lucy firefox

Offline

#3 2008-08-07 17:37:24

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Using apps with a login during another login's session.

As a root perform xhost localhost. I think that will solve your problem


Be yourself, because you are all that you can be

Offline

#4 2008-08-08 16:55:20

rrodrigues
Member
Registered: 2008-08-08
Posts: 44

Re: Using apps with a login during another login's session.

hi..
i'm sorry...
but i've the same problem...

If i do what SriptDevil says appears the same error message :

No protocol specified
xhost:  unable to open display ":0.0"

i want perform this command as root:

xmessage -timeout 5 -center Battery

but appears this message error:

No protocol specified
Error: Can't open display: :0.0

Offline

#5 2008-08-09 12:00:53

Koiti
Member
Registered: 2008-05-03
Posts: 6

Re: Using apps with a login during another login's session.

Tried both commands, neither worked.

I only need to have (at least) two different profiles for firefox (bookmarks, history, etc.). Is this doable?

Cheers

Offline

#6 2008-08-09 12:05:43

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: Using apps with a login during another login's session.

Koiti wrote:

I only need to have (at least) two different profiles for firefox (bookmarks, history, etc.). Is this doable?

Yep smile
http://support.mozilla.com/en-US/kb/Profiles

Offline

Board footer

Powered by FluxBB