Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ac7fee61
Kaydet (Commit)
ac7fee61
authored
May 31, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cmcfixes74: #i111960 use xdg-open when available
üst
5a13b18d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
24 deletions
+34
-24
gnome-open-url.sh
shell/source/unix/misc/gnome-open-url.sh
+2
-2
open-url.sh
shell/source/unix/misc/open-url.sh
+32
-22
No files found.
shell/source/unix/misc/gnome-open-url.sh
Dosyayı görüntüle @
ac7fee61
#!/bin/sh
#!/bin/sh
# use
gnome-open utility coming with libgnome
if available
# use
xdg-open or gnome-open
if available
gnome-open
"
$1
"
2>/dev/null
||
"
$0
.bin"
$1
xdg-open
"
$1
"
2>/dev/null
||
gnome-open
"
$1
"
2>/dev/null
||
"
$0
.bin"
$1
exit
0
exit
0
shell/source/unix/misc/open-url.sh
Dosyayı görüntüle @
ac7fee61
...
@@ -46,38 +46,48 @@ run_browser() {
...
@@ -46,38 +46,48 @@ run_browser() {
# special handling for mailto: uris
# special handling for mailto: uris
if
echo
$1
|
grep
'^mailto:'
>
/dev/null
;
then
if
echo
$1
|
grep
'^mailto:'
>
/dev/null
;
then
# check for xdg-email
mailer
=
`
which xdg-email
`
if
[
!
-z
"
$mailer
"
]
;
then
$mailer
"
$1
"
&
exit
0
fi
# check $MAILER variable
# check $MAILER variable
if
[
!
-z
"
$MAILER
"
]
;
then
if
[
!
-z
"
$MAILER
"
]
;
then
$MAILER
"
$1
"
&
$MAILER
"
$1
"
&
exit
0
exit
0
else
# mozilla derivates may need -remote semantics
for
i
in
thunderbird mozilla netscape
;
do
mailer
=
`
which
$i
`
if
[
!
-z
"
$mailer
"
]
;
then
run_mozilla
"
$mailer
"
"
$1
"
exit
0
fi
done
# handle all non mozilla mail clients below
# ..
fi
fi
# mozilla derivates may need -remote semantics
for
i
in
thunderbird mozilla netscape
;
do
mailer
=
`
which
$i
`
if
[
!
-z
"
$mailer
"
]
;
then
run_mozilla
"
$mailer
"
"
$1
"
exit
0
fi
done
# handle all non mozilla mail clients below
# ..
else
else
# check for xdg-open
browser
=
`
which xdg-open
`
if
[
!
-z
"
$browser
"
]
;
then
$browser
"
$1
"
&
exit
0
fi
# check $BROWSER variable
# check $BROWSER variable
if
[
!
-z
"
$BROWSER
"
]
;
then
if
[
!
-z
"
$BROWSER
"
]
;
then
$BROWSER
"
$1
"
&
$BROWSER
"
$1
"
&
exit
0
exit
0
else
# mozilla derivates may need -remote semantics
for
i
in
firefox mozilla netscape
;
do
browser
=
`
which
$i
`
if
[
!
-z
"
$browser
"
]
;
then
run_mozilla
"
$browser
"
"
$1
"
exit
0
fi
done
# handle all non mozilla browers below
# ..
fi
fi
# mozilla derivates may need -remote semantics
for
i
in
firefox mozilla netscape
;
do
browser
=
`
which
$i
`
if
[
!
-z
"
$browser
"
]
;
then
run_mozilla
"
$browser
"
"
$1
"
exit
0
fi
done
# handle all non mozilla browers below
# ..
fi
fi
exit
1
exit
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment