aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/share
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-14 10:58:38 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-14 10:58:38 +0100
commit0b506ac67c33939732bdd91d39a8a632bcbe0841 (patch)
treea00dedd9691f349dcf4050eac970e24be66e331a /dot_local/share
parenteb807c911f2c364c1c8a8bd67026b997f2b0d2f0 (diff)
downloaddotfiles-0b506ac67c33939732bdd91d39a8a632bcbe0841.tar.gz
dotfiles-0b506ac67c33939732bdd91d39a8a632bcbe0841.tar.bz2
dotfiles-0b506ac67c33939732bdd91d39a8a632bcbe0841.zip
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).
Diffstat (limited to 'dot_local/share')
-rw-r--r--dot_local/share/snx-rs/bin/executable_xdg-open11
1 files changed, 5 insertions, 6 deletions
diff --git a/dot_local/share/snx-rs/bin/executable_xdg-open b/dot_local/share/snx-rs/bin/executable_xdg-open
index 5577b10..f646200 100644
--- a/dot_local/share/snx-rs/bin/executable_xdg-open
+++ b/dot_local/share/snx-rs/bin/executable_xdg-open
@@ -1,11 +1,10 @@
#!/bin/sh
# xdg-open shim that hands every URL to the flatpak ungoogled-chromium.
#
-# Used by snx-rs (which calls `xdg-open` via the `opener` crate) to land
-# the SAML callback inside a browser that won't HTTPS-upgrade or LNA-block
-# the loopback handoff to 127.0.0.1:7779. Wired up via a systemd --user
-# drop-in (dot_config/systemd/user/snx-rs.service.d/10-chromium-saml.conf)
-# that prepends this directory to the daemon's PATH — it does NOT shadow
+# Used by `snxctl connect` (via the snxctl-chromium wrapper) so the
+# Check Point SAML callback lands in a browser that won't HTTPS-upgrade
+# or LNA-block the loopback handoff to 127.0.0.1:7779. The wrapper
+# prepends this directory to snxctl's PATH — this file does NOT shadow
# the system-wide xdg-open for any other process.
exec flatpak run io.github.ungoogled_software.ungoogled_chromium \
- --new-window "$@"
+ "$@"