To run your own copy of conkeror, such as a clone of the git
repository rather than the debian packaged conkeror, using the
supplied method of finding an appropriate xulrunner executable, use a
wrapper script such as the following.

#!/bin/sh
CONKEROR_DIR=$HOME/conkeror
export CONKEROR_DIR
exec sh $CONKEROR_DIR/debian/conkeror.bin "$@"
---
 debian/conkeror.bin |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/conkeror.bin b/debian/conkeror.bin
index 4c66621..58f5479 100644
--- a/debian/conkeror.bin
+++ b/debian/conkeror.bin
@@ -2,6 +2,8 @@
 # Wrapper around xulrunner to start the xulrunner application conkeror
 # Written by Axel Beckert <[email protected]> for the Debian Project
 
+: ${CONKEROR_DIR:=/usr/share/conkeror}
+
 # Find an appropriate xulrunner binary
 XULRUNNER=''
 for xr in xulrunner-8.0 xulrunner-7.0 xulrunner-6.0 xulrunner-5.0 
xulrunner-2.0 xulrunner-1.9.2 xulrunner-1.9.1 xulrunner; do
@@ -31,8 +33,8 @@ if [ -z "$XULRUNNER" ]; then
 fi
 
 if [ "$*" = "--help" ]; then
-    errormsg="`exec $XULRUNNER /usr/share/conkeror/application.ini \"$@\" 
2>&1`"
+    errormsg="`exec $XULRUNNER \"$CONKEROR_DIR\"/application.ini \"$@\" 2>&1`"
     echo "$errormsg" | sed -e "s:/[^ ]*/xulrunner-bin:$0:; 
/-\(width\|height\)/d" 1>&2
 else
-    exec $XULRUNNER /usr/share/conkeror/application.ini "$@"
+    exec $XULRUNNER "$CONKEROR_DIR"/application.ini "$@"
 fi
-- 
1.7.7

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to