summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-03 11:36:13 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-03 11:36:13 +0200
commit95dc764bebec6dac0451833bc5b0b2e7aec6b24e (patch)
treeac10a068b0fc30dd2ec28bd6e2ef37fe729a0e05
parent6ad5649b6c858d0b8ebe10fbff0b527de0ca615f (diff)
downloadfpGUI-95dc764bebec6dac0451833bc5b0b2e7aec6b24e.tar.xz
Another addition to fpgOpenURL() under Linux.
I never even knew about 'sensible-browser' option. :-)
-rw-r--r--src/corelib/x11/fpg_utils_impl.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/x11/fpg_utils_impl.inc b/src/corelib/x11/fpg_utils_impl.inc
index 2099addb..d8625b8c 100644
--- a/src/corelib/x11/fpg_utils_impl.inc
+++ b/src/corelib/x11/fpg_utils_impl.inc
@@ -23,6 +23,8 @@ begin
Helper := '';
if fpsystem('which xdg-open') = 0 then
Helper := 'xdg-open'
+ else if FileExists('/usr/bin/sensible-browser') then
+ Helper := '/usr/bin/sensible-browser'
else if FileExists('/etc/alternatives/x-www-browser') then
Helper := '/etc/alternatives/x-www-browser'
else if fpsystem('which firefox') = 0 then