repo.or.cz
/
gentoo-zh.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove ia64 keywords
[gentoo-zh.git]
/
net-im
/
tencent-qq
/
files
/
xdg-open.sh
blob
25739c3f867645ff821a21866366be33b84423dd
1
#!/bin/bash
2
URI_TO_OPEN
=
"
$1
"
3
4
if
! [
"
${URI_TO_OPEN:0:8}
"
==
"jsbridge"
];
then
5
if
[
"
${URI_TO_OPEN:0:4}
"
==
"http"
];
then
6
/
snapd-xdg-open
"
$URI_TO_OPEN
"
7
else
8
/
flatpak-xdg-open
"
$URI_TO_OPEN
"
9
fi
10
fi