You are not logged in.

#1 2016-03-04 16:34:53

phaze08
Member
Registered: 2013-08-14
Posts: 13

[SOLVED] Applications wont start, "Could not connect to Display 0.0"

So I've installed Arch 3 or 4 times with only a few issues, and I've usually fixed them myself with troubleshooting or searching the wiki or forums. But yesterday I reinstalled fresh and I'm having an issue I've never seen.

I've search the web and had alot of results coming to this forum with similar issues, but they're not quite the same and the fixes in those forums don't help me. So here's what's happening:

When I installed my GUI, I installed Gnome (Shell v3.18.3) and Plasma5 (v5.5.5-1). When I rebooted, I began to install apps I liked such as Chromium, GIMP, qBittorrent, etc. Then I noticed Chromium wouldn't open sometimes, and other times, other apps like terminal or dolphin wouldn't open. After a reboot it would fix, but after a while I noticed that, the first app I run after a reboot will always open, but after that, nothing will. They will not open from Plasma, Gnome, or the Terminal. The terminal prints that the application 'Could not connect to Display 0.0.'

I've looked through a few files and as far as I can tell, everything is set to display 0.0 and from what I've seen online, that seems correct.

When I run:

echo $DISPLAY

it returns:

:0.0

I've also run

export DISPLAY=0.0

and I read somewhere that if you insert the above

export DISPLAY=0.0

into ~/.bashrc that it will fix things, but that didn't seem to help.

Anyway, I don't have much experience with this particular error, but I can provide any log files or config files needed.

Would appreciate it if anyone could provide insight or try and help figure out what's happening.




Edit: Seems like SDDM was the issue for some reason, I'm running with GDM now and everything is fine! Thanks for your time everyone!

Last edited by phaze08 (2016-03-04 20:49:59)

Offline

#2 2016-03-04 18:31:25

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

what is the output of

$ hostname

Offline

#3 2016-03-04 19:39:37

phaze08
Member
Registered: 2013-08-14
Posts: 13

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

It just says

archiso

I assume that's the default from the arch installer, I guess I never changed it. Would that cause issues?

Sorry, not sure how to make it come up as code.

Last edited by phaze08 (2016-03-04 20:01:55)

Offline

#4 2016-03-04 19:58:41

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

phaze08 wrote:

It just says

archiso

I assume that's the default from the arch installer, I guess I never changed it. Would that cause issues?

Strange would have expected it to be hostname unless you set it to something else.
As long as it is not set to hostname it is not what I am thinking of as that can cause the issue you are experiencing.

phaze08 wrote:

Sorry, not sure how to make it come up as code.

See the BBCode link below the reply panel.
Edit:
Moved request for additional information to below
What is the journal from the time when you can start an application successfully until after one fails?

Last edited by loqs (2016-03-04 20:05:19)

Offline

#5 2016-03-04 20:02:15

phaze08
Member
Registered: 2013-08-14
Posts: 13

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

Ok, I edited that other post.

Do you have any other ideas?

Last edited by phaze08 (2016-03-04 20:02:47)

Offline

#6 2016-03-04 20:03:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

phaze08 wrote:

I assume that's the default from the arch installer

What installer did you use?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-03-04 20:07:48

phaze08
Member
Registered: 2013-08-14
Posts: 13

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

I downloaded it on 2/26/16 from one of the United States Mirrors. It was the dual.iso version. I'm running 64 bit.

Offline

#8 2016-03-04 20:20:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

phaze08 wrote:

I've looked through a few files and as far as I can tell, everything is set to display 0.0 and from what I've seen online, that seems correct.

Where are you explicitly setting DISPLAY? Please provide more information about your setup: how you start X, what is in your journal, Xorg log and whether you have an active session or not.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2016-03-04 20:30:30

phaze08
Member
Registered: 2013-08-14
Posts: 13

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

jasonwryan wrote:
phaze08 wrote:

I've looked through a few files and as far as I can tell, everything is set to display 0.0 and from what I've seen online, that seems correct.

Where are you explicitly setting DISPLAY? Please provide more information about your setup: how you start X, what is in your journal, Xorg log and whether you have an active session or not.

Updated OP with additional info. X starts automatically, I guess if it helps I'm using SDDM login manager.

I guess you could say I have an active session right now, since I'm logged in, is that what you're referring to? Also, my Xorg log file just tells me X is already running? X is running, just no other apps will start hardly.

Offline

#10 2016-03-04 20:36:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

Don't export DISPLAY: that is more likely to break (more) things than fix your current issue. What happens if you remove SDDM from the equation?
You can determine if your session is active with:

loginctl show-session $XDG_SESSION_ID --property=Active

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2016-03-04 20:39:31

phaze08
Member
Registered: 2013-08-14
Posts: 13

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

jasonwryan wrote:

Don't export DISPLAY: that is more likely to break (more) things than fix your current issue. What happens if you remove SDDM from the equation?
You can determine if your session is active with:

loginctl show-session $XDG_SESSION_ID --property=Active

It returns:

Active=yes

Let me try and use Gdm and see what happens.

Edit: Actually, using gdm seems to have fixed it, things start from terminal and from my plasma launcher. Before even some apps like the kde settings, systemsettings5, wouldn't launch at all.

Last edited by phaze08 (2016-03-04 20:47:44)

Offline

#12 2016-03-04 20:41:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Applications wont start, "Could not connect to Display 0.0"

Try without a DM: most of them screw things up in some way or another...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB