On 1/12/22 9:38 PM, lejeczek via users wrote:
On 11/01/2022 19:54, C Linus Hicks wrote:
Making some assumptions about your requirements:
- Make sure xauth is installed
- Your DISPLAY environment variable is likely: ":0" - just verify it is set
- Run the command: "xauth list"
- Copy the line that has "<hostname>/unix:", all three parts
- Use su - or sudo to get an interactive session for alternate user
- Run xauth command with no arguments
- Type "list" at the prompt
- Assuming this user currently doesn't have permission (no entry for host/display):
- Type "add" and then paste the line you copied from step 4
- Type "exit" command from xauth
- Firefox should now be able to use the display, and your addition is persistent
oughh.. It turns out that
export XAUTHORITY=...
is redundant and I had it in .bash_profile of my 'regular', sudo/su from_user. Nor it's needed for sudo/su to_user. Leave it vanilla default and 'firefox-wayland' works beautifully in F35, at least with 'su'
My approach to let user bbb open X11 windows on the desktop of user aaa is:
aaa@localhost$ xhost si:localuser:bbb
Then you just have to su to bbb and
bbb@localhost$ export DISPLAY=:0