Re: mozilla and Evolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seems pretty explanatory to me. Works great for me. It will even open

Evolution if it's not already running. :-)

I tried the FAQ, and it doesn't work quite right for me. For Firefox and Thunderbird, you're supposed to tell mozex to run a shell script that looks like this:
---------
export MOZILLA_FIVE_HOME=/usr/local/thunderbird


if [ $(ps aux | grep thunderbird | wc -l) -gt 4 ]; then
# thunderbird is running (thunderbird est lance)
$MOZILLA_FIVE_HOME/thunderbird -remote "mailto($1?subject=$2)"
else
# thunderbird is not running (thunderbird n'est pas lance)
$MOZILLA_FIVE_HOME/thunderbird -P default -compose mailto:$1?subject=$2;fi
---------
Makes sense. The idea is to use the "remote" option if Thunderbird is already running, so you don't run into the profile manager (god I wish I could turn that off), or the "compose" option if Thunderbird is not running. On my computer it only works when Thunderbird is NOT running--not when it's already up. I get the profile manager.


So I experimented. When I ran

ps aux | grep thunderbird | wc -l

at the command line, I got "3". OK, so I changed the if statement to "-gt 2" instead of "-gt 4". Same problem.

So I experimented some more. I commented everything but these two lines:

export MOZILLA_FIVE_HOME=/usr/local/thunderbird
$MOZILLA_FIVE_HOME/thunderbird -remote "mailto($1?subject=$2)"

Voila! Now it works when Thunderbird is running (but I wouldn't expect it to work when tbird is not running, of course). So this is better but not perfect.


Nevermind. Switching it to "-gt 1" works fine. I guess within the script the ps doesn't see the 'grep thunderbird' so there is one fewer process to count.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux