File: 05-afterstepdoc.patch

package info (click to toggle)
afterstep 2.2.12-18.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,184 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,094; perl: 1,558; cpp: 811
file content (36 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Robert Luberda <robert@debian.org>
Date: Tue, 7 Mar 2006 23:03:00 +0100
Subject: 05 afterstepdoc

Use sensible-browser to show afterstep's documentation.
---
 doc/afterstepdoc.in | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/doc/afterstepdoc.in b/doc/afterstepdoc.in
index ee04958..22f233b 100755
--- a/doc/afterstepdoc.in
+++ b/doc/afterstepdoc.in
@@ -9,21 +9,4 @@
 # First try standard path, then local, then other possible paths
 #
 
-for app in sensible-browser x-www-browser firefox mozilla opera konqueror netscape; do 
-	full_path=`which $app`
-	if [ "x$full_path" != "x" ] ; then
-     		$app @datarootdir@/doc/afterstep/html/index.html & exit
-	fi
-done
-
-for lynx in /usr/bin/lynx /bin/lynx /usr/local/bin/lynx ; do
-    if [ -x $lynx ] ; then
-	if [ -x /usr/bin/aterm ] ; then
-	    exec /usr/bin/aterm -e $lynx @datarootdir@/doc/afterstep/html/index.html &
-	elif [ -x /usr/local/bin/aterm ] ; then
-	    exec /usr/local/bin/aterm -e $lynx @datarootdir@/doc/afterstep/html/index.html &
-	else			       
-	    exec xterm -bg black -fg white -sl 500 -vb -e $lynx @datarootdir@/doc/afterstep/html/index.html &
-	fi
-    fi
-done
+exec sensible-browser "file://@datarootdir@/doc/afterstep/html/index.html"