From 0b506ac67c33939732bdd91d39a8a632bcbe0841 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 14 May 2026 10:58:38 +0100 Subject: refactor(snxctl-chromium): drop daemon drop-in, override snxctl's PATH snx-rs.service is a system unit, not --user, so the prior approach of overriding the daemon's PATH via a systemd drop-in could never apply. And it wasn't needed anyway: snxctl itself runs opener::open(url) in-process, so prepending the shim dir to snxctl's PATH is enough. - Drop dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf. - snxctl-chromium now just sets PATH and exec's snxctl connect. - xdg-open shim no longer forces --new-window so chromium can reuse a warm window (faster SAML round-trip). --- dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf (limited to 'dot_config') diff --git a/dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf b/dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf deleted file mode 100644 index a5380e3..0000000 --- a/dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf +++ /dev/null @@ -1,10 +0,0 @@ -[Service] -# Force snx-rs to use the flatpak ungoogled-chromium as its SAML browser. -# snx-rs calls `xdg-open ` via the `opener` crate. Prepending a private -# PATH dir that contains an `xdg-open` shim makes the daemon find our shim -# first, without affecting xdg-open for any other user process. -# -# Why not the system default browser? LibreWolf force-upgrades loopback to -# HTTPS and enables LNA blocking, both of which break snx-rs's plain-HTTP -# 127.0.0.1:7779 SAML callback. See firefox/user-overrides.js comments. -Environment=PATH=%h/.local/share/snx-rs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin -- cgit v1.3.1