W dniu 14.03.2023 o 10:43, Carlos E. R. pisze:
Hi,
I used this tiny script, run in my desktop machine, to open firefox in my "mediaserver" and display a youtube there:
cer@Telcontar:~> cat /home/cer/bin/IsengardFirefox #!/bin/bash ssh cer@isengard.valinor "DISPLAY=:0 firefox $1 $2 $3" cer@Telcontar:~>
Both machines have been upgraded to 15.4 since then, and now the script fails:
cer@Telcontar:~> IsengardFirefox https://www.youtube.com/watch?v=Y-4S7cdo3tY Invalid MIT-MAGIC-COOKIE-1 keyNo protocol specified Error: cannot open display: :0 cer@Telcontar:~>
This is a solution we concocted on this thread:
Archived-At: https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/23...
I use this (on remote machine): export DISPLAY=:0 if [[ -z "$XAUTHORITY" ]]; then export $(systemctl --user show-environment | grep -E "^XAUTHORITY=") fi run_here_whateve_you_need