Hi all,
I have been really enjoying using run-conkeror, but have noticed that
it takes the first xulrunner config it finds in whichever directory it
is using.
I just use the default /etc/gre.d/*.conf on xubuntu. The problem is
that every time xulrunner gets upgraded the run-conkeror script
becomes broken because it finds the old conf and tries to call an
executable that does not exist.
I finally thought I would take a look, and after muddling my way
through the very cool one-liner, I made a change and it worked, so it
now grabs the largest version number it finds. Attached is the patch.
Hope this helps someone. :)
Rohan
diff --git a/contrib/run-conkeror b/contrib/run-conkeror
index 1006c36..a0b0fe6 100755
--- a/contrib/run-conkeror
+++ b/contrib/run-conkeror
@@ -39,7 +39,8 @@ function chase () {
## doom.
##
function check-gre () {
- grep -h GRE_PATH $(grep -l '\[1\.9' "${1%/}"/*.conf) | cut -d= -f2 | head -n 1
+ # this takes the latest version
+ grep -h GRE_PATH $(grep -l '\[1\.9' "${1%/}"/*.conf) | cut -d= -f2 | tail -n 1
}
if [[ -d "$HOME/.gre.d" ]]; then
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror