Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd can start gnome only with root
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
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1068
Location: switzerland

PostPosted: Sun Aug 31, 2014 6:15 am    Post subject: systemd can start gnome only with root Reply with quote

I can startx only with root, with normal user no, I have this error

Code:
dconf-CRITICAL **: unable to create directory '/run/user/1000/dconf': Permission denied.  dconf will not work properly.


I search for solution but nothing...

I tried also to add this code in .bash_profile

Code:
export XDG_RUNTIME_DIR=/run/user/$(id -u luna80)


but doesn't works

can somebody help me please? thanks in advance
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4007
Location: USA

PostPosted: Sun Aug 31, 2014 3:03 pm    Post subject: Reply with quote

Was /run/user/1000 created?

This should have been created by systemd itself...

Found this: https://www.nomachine.com/TR01L04202 - does this workaround fix the problem?

Did you update to systemd recently, when did it break?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1068
Location: switzerland

PostPosted: Sun Aug 31, 2014 3:32 pm    Post subject: Reply with quote

I'm in a fresh installation, it's not an update

the problem is strange, if I start gdm and I log with the luna80 user all works fine but not if try to launch directly startx from luna80 (that is what I need)
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 183
Location: Estonia, Tallinn

PostPosted: Tue Sep 02, 2014 6:12 am    Post subject: Reply with quote

Maybe it's an issue of launching it from the terminal without systemd, whose logind takes care of the /run/user stuff for you? If you don't use systemd, you'd probably need to take care of all that yourself. Or just use a login manager, as it's more secure anyway.
_________________
GNOME team lead; GStreamer
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4007
Location: USA

PostPosted: Tue Sep 02, 2014 3:23 pm    Post subject: Reply with quote

I think there's something wrong with the OP's logind, it was mentioned that systemd was being used. I figure a console session somehow wasn't created by login and thus subsequent directory is not created.

I should see if I can reproduce this behavior on a working systemd box that has console working... my main systemd machine's fglrx causes a lot of problems and can't use the console (ctrl-alt-fX) once graphics mode gets initialized...

EDIT

I tried playing with my systemd box that has gdm working.

If I login from the console by ctrl-alt-f1 to it before logging in via gdm, I still see a /run/user/xxxx directory created and owned by xxxx. This is also created by logging in through gdm.

A session is shown by "loginctl" by either method of login. Do you see different login sessions created?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
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