Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot open display: 0 (all apps showing this error)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Ashalyss
n00b
n00b


Joined: 20 Sep 2016
Posts: 1

PostPosted: Tue Sep 20, 2016 10:25 pm    Post subject: Cannot open display: 0 (all apps showing this error) Reply with quote

Hi all,
Your help would be greatly appreciated.

Forgive me for my formatting as I am posting from my phone.

Desktop environment: kde-plasma-meta
Kernel: 4.7.2
Using systemd

Issue:
All applications fail to launch with the error "cannot open display 0"

Temp Workaround:
Create a new user account. This allows things to launch for a short amount of time.

Issue with workaround:
After 5 - 10 minutes all applications once again fail to start with the same error. This persists even after deleting the user account and home directory. The only way to make anything launch is to create a new user with an entirely new name.

Example:
Create user ashalyss
Use applications for about 5 minutes.
After this all applications fail to launch
Delete user ashalyss
Recreate user ashalyss
Applications still fail to launch
Create user tempuser
Applications work again but only for 5 minutes
Repeat making new users all day

Note: even kde-plasma's screen locker breaks and has to be unlocked manually in a seperate virtual terminal using "loginctl unlock-sessions"

I would like to be able to use a single account for more than 5 minutes as you might understand. Any help appreciated.
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 911
Location: Switzerland

PostPosted: Wed Sep 21, 2016 6:48 am    Post subject: Reply with quote

Hi,

a friend of mine had a similar issue recently - it happened every time he switched the location where he got another hostname through dhcp!
with the command "hostname" you can see what is actually set and with "hostname newhostname" you can set it on the fly.
If that is your issue, then you'll have to tell your dhcp client to not change the hostname...

HTH, cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum