On 2023-03-14 13:08, Robert Webb wrote:
On Tue, 14 Mar 2023 11:40:03 +0100, Per Jessen
wrote: Carlos E. R. wrote:
...
First, I get a maybe equivalent error message trying this from a not up-to-date Tumbleweed system to a remote, almost up-to-date Tumbleweed system:
linux@th-live:~> ssh robert@poppies 'DISPLAY=:0 firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY' Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Error: cannot open display: :0
But calling ssh with the -X option, and no DISPLAY setting, works to open the page in an already running firefox on the *remote* system:
linux@th-live:~> ssh -X robert@poppies 'firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY'
Didn't work six months ago, doesn't work now: cer@Telcontar:~> ssh -X cer@isengard.valinor "DISPLAY=:0 firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY" Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :0 cer@Telcontar:~> The "Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1" error is new since the upgrade, too. On all ssh sessions anywhere.
Normally, that usage would display the GUI app on the local system. Ah, maybe it is because firefox tries to find an already running instance, and it finds the one displaying on the remote system.
Yes, FF is already running in that computer, and in focus.
For me also, it doesn't work without the -X : Error: no DISPLAY environment variable specified
-- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)