Ubuntu 22.04, *all* X applications appear to work fine over SSH forwarding except for Firefox, the error is "X11 connection rejected because of wrong authentication", and copying ~/.Xauthority to ~/snap/firefox/common solves the problem.
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2019877 Title: 'snap'ped firefox no-longer supports remote displays Status in firefox package in Ubuntu: Confirmed Bug description: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy Since the downgrade to using snap I've had endless problems with firefox. The most recent is that it no-longer supports running on a remote display. $ ssh -XYK <remote-machine> # on remote... # Launch a local firefox, displaying on remote machine $ firefox --no-remote /bin/bash: /home/rearnsha/.shrc: Permission denied X11 connection rejected because of wrong authentication. Error: cannot open display: localhost:10.0 X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. $ What should happen is that firefox starts There are two issues here. Both, I suspect, caused by snap. The first is that error message from bash, I have BASH_ENV set but the frobbing of the directory structure probably means the .shrc file has not been correctly copied (copying that file is not enough, it in turn sources other files from my home filesystem). I'm not able to work out exactly what's going wrong here, though because strace doesn't work properly on 'snap'ped binaries either. The second issue is that the .Xauthority information has not been copied during the frobbing of the directory structure so the remote authentication tokens are missing. I can hack around the issue by copying ~/.Xauthority to ~/snap/firefox/common/ but I shouldn't need to be doing this stuff. Frankly, this all sucks and it is seriously making me consider whether I want to continue using Ubuntu. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2019877/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

