| 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
? | |