diff options
author | Yidaozhan Ya | 2023-01-07 17:53:23 +0800 |
---|---|---|
committer | Yidaozhan Ya | 2023-01-07 17:53:23 +0800 |
commit | 9aefc883d5176677f10f4ed28872c9e0e5cfe54b (patch) | |
tree | 3bb8ea6e7f9afcf6226ec6b275fcf07cbdd6a0ab /xdg-open.sh | |
parent | f39e683ed8f5470d7492703bde3e2fef6691a48c (diff) | |
download | aur-9aefc883d5176677f10f4ed28872c9e0e5cfe54b.tar.gz |
[opt] 更换链接打开方式为 snapd-xdg-open 以兼容更多浏览器
Diffstat (limited to 'xdg-open.sh')
-rwxr-xr-x | xdg-open.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xdg-open.sh b/xdg-open.sh index e9a9a6231fe0..d6c6d882ba08 100755 --- a/xdg-open.sh +++ b/xdg-open.sh @@ -2,5 +2,9 @@ URI_TO_OPEN="$1" if ! [ "${URI_TO_OPEN:0:8}" == "jsbridge" ]; then - /real-xdg-open "$URI_TO_OPEN" + if [ "${URI_TO_OPEN:0:4}" == "http" ]; then + /snapd-xdg-open "$URI_TO_OPEN" + else + /flatpak-xdg-open "$URI_TO_OPEN" + fi fi |