HTTrack Website Copier
Free software offline browser - FORUM
Subject: Please apply this fix for chrome(/chromium) browse
Author: v1nce
Date: 01/01/2011 15:38
 
IMHO The Mozilla fix (or cuisine ;) ) in /usr/bin/webhttrack should be extended
to chrome browser

...
function mozillabrowser {
# returns 0, if the browser is mozilla type
echo "$1" | grep -q "iceape"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "mozilla"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "netscape"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "firebird"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "firefox"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "iceweasel"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "abrowser"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "chrome"
[ $? -eq 0 ] && return 0 
echo "$1" | grep -q "chromium"
[ $? -eq 0 ] && return 0 
return 1;
}
function mozillaloaded  {
user_name=`logname 2>/dev/null`
if ! test -n "${user_name}"; then
user_name=`id -un`
fi
if test -n "${user_name}"; then
ps -e -U "$user_name" | grep -E
"(iceape|mozilla|netscape|firebird|firefox|chrome|chromium)" | grep -qv "grep
-E"
else
false
fi
}
...

Chrome threads exits if there's an already running chrome

PS: is it normal that iceweasel and abrowser are not listed in the second list
?
 
Reply


All articles

Subject Author Date
Please apply this fix for chrome(/chromium) browse

01/01/2011 15:38
Re: Please apply this fix for chrome(/chromium) browse

01/11/2011 21:19
Re: Please apply this fix for chrome(/chromium) browse

01/05/2012 17:19




0

Created with FORUM 2.0.11