aboutsummaryrefslogtreecommitdiffstats
path: root/osurl
diff options
context:
space:
mode:
Diffstat (limited to 'osurl')
-rwxr-xr-xosurl7
1 files changed, 6 insertions, 1 deletions
diff --git a/osurl b/osurl
index 4b934c1..029c87a 100755
--- a/osurl
+++ b/osurl
@@ -89,4 +89,9 @@ if out_url == in_url:lower() then
end
-- print("out_url = " .. out_url)
-os.execute("xdg-open " .. out_url)
+local open_util = "xdg_open "
+if os.execute('type flatpak-xdg-open >/dev/null 2>/dev/null') then
+ open_util = "flatpak-xdg-open "
+end
+
+os.execute(open_util .. out_url)