You are not logged in.

#1 2015-07-16 18:31:03

stevenman42
Member
Registered: 2015-07-16
Posts: 3

[SOLVED]Can't open windows except as root

I'm running xfce and i3, and the only way I can open windows is if I'm logged in as root, or with sudo.  If I try, there are a few different reponses that I get depending on the application.

Trying to open gedit:

** (gedit:1836): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused

(gedit:1836): Gtk-WARNING **: cannot open display: :0.0

Firefox:

(process:1840): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
No protocol specified
Error: cannot open display: :0.0

Chromium:

[1850:1850:0716/142728:ERROR:browser_main_loop.cc(223)] Gtk: cannot open display: :0.0


I have done a lot of googling on this problem, and the few threads I've found with relevant information didn't seem to help.  However. I'm new to arch, and fairly new to linux in general, so I may not have been searching for the right things.

Last edited by stevenman42 (2015-07-16 19:46:50)

Offline

#2 2015-07-16 18:35:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,883
Website

Re: [SOLVED]Can't open windows except as root

Moving to Newbie Corner.

How are you starting X?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2015-07-16 18:37:41

stevenman42
Member
Registered: 2015-07-16
Posts: 3

Re: [SOLVED]Can't open windows except as root

startx

Offline

#4 2015-07-16 19:35:08

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED]Can't open windows except as root

For your normal user, what is the output of:

cat ~/.xinitrc

Don't use `startx` as root.

Offline

#5 2015-07-16 19:45:10

stevenman42
Member
Registered: 2015-07-16
Posts: 3

Re: [SOLVED]Can't open windows except as root

Ah okay I think I fixed it.  There wasn't actually a .xinitrc file for my normal user.  I didn't realize that there had to be one for both.  Thanks for the help.

Offline

Board footer

Powered by FluxBB