You are not logged in.

#1 2016-03-15 17:50:53

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

[SOLVED] startxfce4 working properly in root, but not in other user

I've installed arch linux x64 on my computer. I added other user. Also I added this new user to common groups. When I type startxfce4 by root, xfce4 runs properly and it's possible to use it. But when I type startxfce4 by newly added user xfce4 also runs. But instead default mouse in background I can see black screen, can't see cursor. Panels are visible. After call "turn off" dialog (I can't see cursor, but panels are working and I can see if cursor is on a button of the panel) cursor appearances. If the cursor hovers panels it's ok. But if this cursor is over background I can see big cross cursor like in checking of working xorg-server. When I run su before executing startxfce4 xfce4 also doesn't work correctly. What did I forget during install xorg-server, xfce4 or during adding new user?

Last edited by ivanmihval (2016-03-15 20:55:41)

Offline

#2 2016-03-15 18:10:55

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

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-15 18:21:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Don't run Xorg as root. 
My guess is that, having done so, there are files that are owned by root in the user's home directory tree.  The user will not be able to write those files, and it is likely that they may not be able to read them either.  Find said files in $HOME, $HOME/.config and $HOME.local directories (and sub-directories)  and delete them.  You will need to do that as root.
Don't run Xorg as root. Ever.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-03-15 19:14:51

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

I've deleted .local and .config but background is also black, and instead typical cursor it's cross when I hover background. Besides that I can't see menu clicking right button on background. On top standard xfce4 panel I can't see active windows. On bottom panel I can't see icon of browser, terminal, etc, instead I can see unknown icons like piece of paper with bended right bottom corner.

Offline

#5 2016-03-15 19:28:27

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Run this to see if you still have files owned by root

find ~/ -user root

https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#6 2016-03-15 19:40:10

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

I typed, output is empty, ie I haven't files owned by root in home/user

Offline

#7 2016-03-15 19:40:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,556
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Your symptoms all sound like your window manager isn't running.  Do windows have title bars?  Can they be resized and moved?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2016-03-15 19:50:43

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

When I execute as non-priviledge user windows haven't titlebars and I can't resize them. Also I couldn't move windows besides firefox. But when I was running as root it was ok. I don't remember if I've installed windows manager, I just typed "pacman -S xfce4".

Offline

#9 2016-03-15 19:55:34

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user

ivanmihval wrote:

... But when I type startxfce4 by newly added user ...

Wait, how exactly do you start X?

Try startx /usr/bin/startxfce4

Last edited by ugjka (2016-03-15 19:56:15)


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#10 2016-03-15 19:55:52

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

And I've checked. xfwm4 are installed.

Offline

#11 2016-03-15 19:58:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,556
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Your WM is installed - I said it's not running.  Those are the exact symptoms of xfce running without it's WM.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2016-03-15 19:59:02

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

ugjka wrote:
ivanmihval wrote:

... But when I type startxfce4 by newly added user ...

Wait, how exactly do you start X?

Try startx /usr/bin/startxfce4

The same situation.

Offline

#13 2016-03-15 20:04:07

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

Trilby wrote:

Your WM is installed - I said it's not running.  Those are the exact symptoms of xfce running without it's WM.

I executed xfwm4 4 times: by user with working xserver, by user without working xserver, by rooot with working xserver and by root without working xserver. And during all 4 times output was: Gtk-WARNING **: cannot open display.

Offline

#14 2016-03-15 20:23:29

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user

This is turning into a spoonfeeding session

https://wiki.archlinux.org/index.php/Xf … ow_manager


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#15 2016-03-15 20:37:33

ivanmihval
Member
Registered: 2016-03-15
Posts: 11

Re: [SOLVED] startxfce4 working properly in root, but not in other user

ugjka wrote:

This is turning into a spoonfeeding session

https://wiki.archlinux.org/index.php/Xf … ow_manager

Thanks, I've deleted .config, .local, .cache from home directory, run xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -sa xfwm4 and it works.

Offline

#16 2016-03-15 20:48:47

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] startxfce4 working properly in root, but not in other user


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

Board footer

Powered by FluxBB