aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/share/snx-rs/bin/executable_xdg-open
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/share/snx-rs/bin/executable_xdg-open')
-rw-r--r--dot_local/share/snx-rs/bin/executable_xdg-open11
1 files changed, 11 insertions, 0 deletions
diff --git a/dot_local/share/snx-rs/bin/executable_xdg-open b/dot_local/share/snx-rs/bin/executable_xdg-open
new file mode 100644
index 0000000..5577b10
--- /dev/null
+++ b/dot_local/share/snx-rs/bin/executable_xdg-open
@@ -0,0 +1,11 @@
+#!/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
+# the system-wide xdg-open for any other process.
+exec flatpak run io.github.ungoogled_software.ungoogled_chromium \
+ --new-window "$@"