You are not logged in.

#1 2010-09-17 16:42:49

solo9300
Member
Registered: 2010-08-18
Posts: 13

No protocol specified

Hello All,

after installing xdm i keep getting this error

$ sudo thunar
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Thunar: Cannot open display:

it seem if i run

 xhost +

the problem go away ,however if i restart it come back.

it seem the problem is in ~/.xsession

~/.xsession

#!/bin/sh
/bin/bash --login -i ~/.xinitrc

~/.xinitrc

#!/bin/sh
exec ck-launch-session startxfce4

any help would be much appreciated.

Offline

#2 2010-09-17 16:58:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No protocol specified

Why 'sudo thunar'? Are you trying to run it as root? If you just run 'thunar', does it work OK?

Offline

#3 2010-09-17 17:01:04

solo9300
Member
Registered: 2010-08-18
Posts: 13

Re: No protocol specified

karol wrote:

Why 'sudo thunar'? Are you trying to run it as root? If you just run 'thunar', does it work OK?

yes i do need to run it as root and yes thunar without sudo work fine.

Offline

#4 2010-09-17 17:03:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No protocol specified

solo9300 wrote:
karol wrote:

Why 'sudo thunar'? Are you trying to run it as root? If you just run 'thunar', does it work OK?

yes i do need to run it as root and yes thunar without sudo work fine.

Isn't there another way to run it as root?
Using 'xhost +' is the usual thing to do when you need to run GUI apps as root.

Last edited by karol (2010-09-17 17:07:45)

Offline

#5 2010-09-17 17:08:40

solo9300
Member
Registered: 2010-08-18
Posts: 13

Re: No protocol specified

karol wrote:
solo9300 wrote:
karol wrote:

Why 'sudo thunar'? Are you trying to run it as root? If you just run 'thunar', does it work OK?

yes i do need to run it as root and yes thunar without sudo work fine.

Isn't there another way to run it as root?
Using 'xhost +' is the usual thing to do when you need to run GUI apps as root.

well, it seem it has to do with installing xdm,  before installing xdm i was able to 'sudo thunar' without a problem?

Offline

Board footer

Powered by FluxBB