You are not logged in.

#1 2021-02-17 13:17:33

devmrfitz
Member
Registered: 2021-01-13
Posts: 54

Xephyr as a different user

Is it possible to open a gnome session in xephyr as user A while being logged in a gnome-shell session as user B?

When I tried to run `startx` after doing `su user_A`, it gave:

xauth:  timeout in locking authority file /run/user/1000/.mutter-Xwaylandauth.RWEXY0

Offline

#2 2021-02-17 15:18:54

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

Re: Xephyr as a different user

I can only assume you are not posting your full/actual commands: startx will not work from within a running X session.  Xephyr will, but you said you just ran "startx".


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

Offline

#3 2021-02-17 15:49:25

devmrfitz
Member
Registered: 2021-01-13
Posts: 54

Re: Xephyr as a different user

Trilby wrote:

I can only assume you are not posting your full/actual commands: startx will not work from within a running X session.  Xephyr will, but you said you just ran "startx".

I "su"ed into user B, opened a xephyr window, set the display env var to that window and then ran "startx"

Offline

#4 2021-02-18 01:55:05

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Xephyr as a different user

You didn’t read, startx will not work with xephyr, because startx will try to launch Xorg in that display that is already used by xephyr...

Instead you should just launch your WM in that display, doing the other things like xinitrc.


My reposSome snippets

Heisenberg might have been here.

Offline

#5 2021-02-18 02:42:18

devmrfitz
Member
Registered: 2021-01-13
Posts: 54

Re: Xephyr as a different user

GaKu999 wrote:

You didn’t read, startx will not work with xephyr, because startx will try to launch Xorg in that display that is already used by xephyr...

Instead you should just launch your WM in that display, doing the other things like xinitrc.

Is there a way to launch a full-fledged GNOME session?

Offline

#6 2021-02-18 05:05:51

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Xephyr as a different user

Only one way to know, try and launch the session with that display, it should work...


My reposSome snippets

Heisenberg might have been here.

Offline

#7 2021-02-18 05:23:38

devmrfitz
Member
Registered: 2021-01-13
Posts: 54

Re: Xephyr as a different user

gnome-session says that WM doesn't support the session

Offline

#8 2021-02-18 06:01:11

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Xephyr as a different user

devmrfitz wrote:

gnome-session says that WM doesn't support the session

Could it be that it’s trying to launch in wayland? Otherwise that’s all I can think of...gnome is a...special cookie


My reposSome snippets

Heisenberg might have been here.

Offline

#9 2021-02-18 06:02:22

devmrfitz
Member
Registered: 2021-01-13
Posts: 54

Re: Xephyr as a different user

I'm using Wayland by default. Can that be an issue?

Offline

#10 2021-02-18 06:08:25

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: Xephyr as a different user

devmrfitz wrote:

I'm using Wayland by default. Can that be an issue?

As far as I know, yes, since xephyr is X11 methinks.


My reposSome snippets

Heisenberg might have been here.

Offline

#11 2021-02-18 08:50:29

seth
Member
Registered: 2012-09-03
Posts: 51,041

Re: Xephyr as a different user

https://wiki.archlinux.org/index.php/GN … g_sessions
You probably still want to ensure the systemd scripts in /etc/X11/xinit/xinitrc.d get sourced.

However, mutter may also not like the software GL environment and deem it insufficient (but idk that)

Offline

Board footer

Powered by FluxBB