[opensuse] XDG_RUNTIME_DIR is not cleared with 'su - anotheruser'
Looks like the old bug is back, when doing 'su - test' or any other user, and trying to launch any X app, it fails because of XDG_RUNTIME_DIR points to the original X session. Have to invoke 'unset XDG_RUNTIME_DIR' first, then everything works fine. -- Regards, Stas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Sun, 30 Nov 2014 22:01:32 +0100 Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> пишет:
Looks like the old bug is back, when doing 'su - test' or any other user, and trying to launch any X app, it fails because of XDG_RUNTIME_DIR points to the original X session. Have to invoke 'unset XDG_RUNTIME_DIR' first, then everything works fine.
And your openSUSE version is ... ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Monday 01 December 2014 06:19:54 Andrei Borzenkov wrote:
В Sun, 30 Nov 2014 22:01:32 +0100
Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> пишет:
Looks like the old bug is back, when doing 'su - test' or any other user, and trying to launch any X app, it fails because of XDG_RUNTIME_DIR points to the original X session. Have to invoke 'unset XDG_RUNTIME_DIR' first, then everything works fine.
And your openSUSE version is ... ?
13.2. Forgot to mention it... -- Regards, Stas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Dec 1, 2014 at 4:37 PM, Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> wrote:
On Monday 01 December 2014 06:19:54 Andrei Borzenkov wrote:
В Sun, 30 Nov 2014 22:01:32 +0100
Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> пишет:
Looks like the old bug is back, when doing 'su - test' or any other user, and trying to launch any X app, it fails because of XDG_RUNTIME_DIR points to the original X session. Have to invoke 'unset XDG_RUNTIME_DIR' first, then everything works fine.
And your openSUSE version is ... ?
13.2. Forgot to mention it...
I tried it in 13.2 (su to root and then su to another user) and in both cases XDG_RUNTIME_DIR was set to destination user. Probably something is different - please copy and paste exact command invocation. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrei Borzenkov wrote:
I tried it in 13.2 (su to root and then su to another user) and in both cases XDG_RUNTIME_DIR was set to destination user. Probably something is different - please copy and paste exact command invocation.
What should it be set to? You said 'user' so XDG_RUNTIME_DIR= user{1,2,3} ...or /home/user{1,2,3} ...or /home/user{1,2,3}/.<somedirname> <$DISPLAY>/.<somedirname> ?? Mine has always been empty and it seems most programs don't a consistent, standard value for such. Thanks! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Mon, 01 Dec 2014 12:50:27 -0800 Linda Walsh <suse@tlinx.org> пишет:
Andrei Borzenkov wrote:
I tried it in 13.2 (su to root and then su to another user) and in both cases XDG_RUNTIME_DIR was set to destination user. Probably something is different - please copy and paste exact command invocation.
What should it be set to?
You said 'user'
so XDG_RUNTIME_DIR= user{1,2,3} ...or /home/user{1,2,3} ...or /home/user{1,2,3}/.<somedirname> <$DISPLAY>/.<somedirname>
bor@opensuse:~> echo $XDG_RUNTIME_DIR /run/user/501 bor@opensuse:~> su - root -c 'echo $XDG_RUNTIME_DIR' Пароль: /run/user/0
??
Mine has always been empty and it seems most programs don't a consistent, standard value for such.
Thanks!
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tuesday 02 December 2014 06:18:53 Andrei Borzenkov wrote:
В Mon, 01 Dec 2014 12:50:27 -0800
Linda Walsh <suse@tlinx.org> пишет:
Andrei Borzenkov wrote:
I tried it in 13.2 (su to root and then su to another user) and in both cases XDG_RUNTIME_DIR was set to destination user. Probably something is different - please copy and paste exact command invocation.
---- What should it be set to?
You said 'user'
so XDG_RUNTIME_DIR= user{1,2,3} ...or /home/user{1,2,3} ...or /home/user{1,2,3}/.<somedirname> <$DISPLAY>/.<somedirname>
bor@opensuse:~> echo $XDG_RUNTIME_DIR /run/user/501 bor@opensuse:~> su - root -c 'echo $XDG_RUNTIME_DIR' Пароль: /run/user/0
??
Mine has always been empty and it seems most programs don't a consistent, standard value for such.
Thanks!
Hm, that is strange, now when I'm trying to reproduce it - everything works as expected. Thanx everyone for doing whatever magic you did to fix it :) -- Regards, Stas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Linda Walsh
-
Stanislav Baiduzhyi