Code: Select all
+ : true
+ PATH=/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/kde/3.3/bin:/usr/kde/3.2/bin:/usr/kde/3.1/bin:/usr/games/bin:/opt/blackdown-jdk-1.4.2.02/bin:/opt/eclipse:/u01/OraHome_1
+ main
+ declare args mozargs urls u i mozpid debugger debugging=false
+ declare candidates retval=0 remote_supports_dash_a progname
+ declare zero=mozilla-launcher
+ [[ -n thunderbird ]]
+ zero=thunderbird
+ unset MOZILLA_LAUNCHER
+ which_browser
+ [[ ! -d /usr/lib/thunderbird ]]
+ case $zero in
+ export MOZILLA_FIVE_HOME=/usr/lib/thunderbird
+ MOZILLA_FIVE_HOME=/usr/lib/thunderbird
+ remote=/usr/lib/thunderbird/mozilla-xremote-client
+ mozbin=/usr/lib/thunderbird/thunderbird-bin
+ grepfor=Thunderbird-bin
+ [[ -n /usr/lib/thunderbird/thunderbird-bin ]]
+ [[ ! -f /usr/lib/thunderbird/thunderbird-bin ]]
+ progname=thunderbird
+ [[ thunderbird == thunderbird ]]
+ grep -q '"0\.[78]"' /usr/lib/thunderbird/defaults/pref/all-thunderbird.js /usr/lib/thunderbird/defaults/pref/composer.js /usr/lib/thunderbird/defaults/pref/mailnews.js /usr/lib/thunderbird/defaults/pref/mdn.js /usr/lib/thunderbird/defaults/pref/smime.js
+ export LD_LIBRARY_PATH=/usr/lib/thunderbird:/usr/lib/thunderbird/plugins
+ LD_LIBRARY_PATH=/usr/lib/thunderbird:/usr/lib/thunderbird/plugins
+ return 0
+ parse_cmdline
+ args=()
+ mozargs=()
+ urls=()
+ [[ 0 -ne 0 ]]
+ return 0
+ [[ 0 -eq 0 ]]
+ [[ 0 == 0 ]]
+ [[ thunderbird == thunderbird* ]]
+ mozargs=-mail
+ find_running
+ declare screens s
+ screens=("$DISPLAY" $(xdpyinfo | awk '
/^name of display:/ {
disp = substr($NF, 0, match($NF, /\.[^.]*$/)-1)
}
/^number of screens:/ {
for (i = 0; i < $NF; i++) {
this = sprintf("%s.%d", disp, i)
if (this != ENVIRON["DISPLAY"])
print this
}
}'))
++ xdpyinfo
++ awk '
/^name of display:/ {
disp = substr($NF, 0, match($NF, /\.[^.]*$/)-1)
}
/^number of screens:/ {
for (i = 0; i < $NF; i++) {
this = sprintf("%s.%d", disp, i)
if (this != ENVIRON["DISPLAY"])
print this
}
}'
+ [[ :0.0 != :* ]]
+ killall -0 thunderbird-bin
+ candidates=("${screens[@]}")
+ set -- -mail
+ [[ 1 -gt 0 ]]
+ case $1 in
+ try_running 'xfeDoCommand(openInbox)'
+ declare s retval=2
+ [[ -z '' ]]
+ /usr/lib/thunderbird/mozilla-xremote-client
+ grep -Fq '[-a '
+ remote_supports_dash_a=true
+ [[ 1 > 0 ]]
+ true
+ for s in '"${candidates[@]}"'
+ true
+ DISPLAY=:0.0
+ /usr/lib/thunderbird/mozilla-xremote-client -a thunderbird 'xfeDoCommand(openInbox)'
+ retval=0
+ [[ 0 -eq 0 ]]
+ candidates=("$s")
+ return 0
+ [[ 0 -eq 0 ]]
+ shift
+ continue
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ try_running 'ping()'
+ declare s retval=2
+ [[ -z true ]]
+ [[ 1 > 0 ]]
+ true
+ for s in '"${candidates[@]}"'
+ true
+ DISPLAY=:0.0
+ /usr/lib/thunderbird/mozilla-xremote-client -a thunderbird 'ping()'
+ retval=0
+ [[ 0 -eq 0 ]]
+ candidates=("$s")
+ return 0
+ [[ -n '' ]]
+ exit 0