From 5244ae38506d1a55719e9bb29fe0899f9eeaeb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 21 May 2025 10:50:36 +0200 Subject: [PATCH] fu-vpn: include xauthority setup --- configs/fu-berlin.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/fu-berlin.nix b/configs/fu-berlin.nix index f064f9e..e0c0042 100644 --- a/configs/fu-berlin.nix +++ b/configs/fu-berlin.nix @@ -131,7 +131,10 @@ in { (pkgs.writers.writeDashBin "fu-vpn" '' if ${pkgs.wirelesstools}/bin/iwgetid | ${pkgs.gnugrep}/bin/grep --invert-match eduroam then - sudo ${pkgs.openconnect}/bin/openconnect vpn.fu-berlin.de --useragent=AnyConnect + # root firefox will not open login window unless root owns Xauthority + sudo cp $XAUTHORITY /root/.Xauthority + sudo chown root: /root/.Xauthority + XAUTHORITY=/root/.Xauthority sudo ${pkgs.openconnect}/bin/openconnect vpn.fu-berlin.de --useragent=AnyConnect fi '') ];