diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-10-10 05:18:55 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-10-10 05:18:55 +0000 |
commit | 023e423d66f549ca06e10c400b6fd2108a96fc94 (patch) | |
tree | 958cba4eee0ab136249f37c32729a1d60a1c9d8d | |
parent | 9d1d46f142cad4e044800490d9b5318ebf04b2fa (diff) |
This patch adds a number of better commands for opening HTML files and URLs on
GNU/Linux. These commands use the defaults systems, plus each command is
tested before executed, so it should be more fault tolerant.
svn path=/trunk/; revision=8796
-rw-r--r-- | packages/patches/better_html_url_handling_on_linux-0.40.3.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/patches/better_html_url_handling_on_linux-0.40.3.patch b/packages/patches/better_html_url_handling_on_linux-0.40.3.patch new file mode 100644 index 00000000..a2218071 --- /dev/null +++ b/packages/patches/better_html_url_handling_on_linux-0.40.3.patch @@ -0,0 +1,27 @@ +Index: u_main.tk +=================================================================== +RCS file: /cvsroot/pure-data/pd/src/u_main.tk,v +retrieving revision 1.25 +diff -u -w -r1.25 u_main.tk +--- u_main.tk 9 Oct 2006 04:36:12 -0000 1.25 ++++ u_main.tk 10 Oct 2007 05:12:38 -0000 +@@ -386,9 +386,16 @@ + global pd_nt + + if {$pd_nt == 0} { +- exec sh -c \ +- [format "firefox file:%s || mozilla file:%s " \ +- $filename $filename] & ++ foreach candidate \ ++ { gnome-open xdg-open sensible-browser iceweasel firefox mozilla \ ++ galeon konqueror netscape lynx } { ++ set browser [lindex [auto_execok $candidate] 0] ++ if {[string length $browser]} { ++ puts stderr [format "%s %s" $browser $filename] ++ exec sh -c [format "%s %s" $browser $filename] ++ break ++ } ++ } + } elseif {$pd_nt == 2} { + puts stderr [format "open %s" $filename] + exec sh -c [format "open %s" $filename] |