summaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_linkhandler
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/bin/executable_linkhandler')
-rwxr-xr-xdot_local/bin/executable_linkhandler3
1 files changed, 3 insertions, 0 deletions
diff --git a/dot_local/bin/executable_linkhandler b/dot_local/bin/executable_linkhandler
index e44dcc1..1ca006f 100755
--- a/dot_local/bin/executable_linkhandler
+++ b/dot_local/bin/executable_linkhandler
@@ -1,4 +1,7 @@
#!/usr/bin/env dash
+if [ "$(cat "$HOME/.config/dotfiles/role" 2>/dev/null)" = canonical ]; then
+ exec /usr/bin/xdg-open "$@"
+fi
resolve_url() {
if [ -f "$1" ]; then