Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Start Thunderbird minimized to tray

  1. #1
    Join Date
    Jul 2010
    Location
    Omnipresence in wired
    Beans
    2
    Distro
    Kubuntu 10.04 Lucid Lynx

    Start Thunderbird minimized to tray

    How can I make Thunderbird start minimized to tray? And get it done on system startup? "ksystraycmd thunderbird %u" added to autorun in system settings doesn't work... Thanks for help!

  2. #2
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Start Thunderbird minimized to tray

    I use alltray just install it then in system-prefrences-startup applications hit add name it and put in the command alltray thunderbird
    Screenshot.png





  3. #3
    Join Date
    Jul 2010
    Location
    Omnipresence in wired
    Beans
    2
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Start Thunderbird minimized to tray

    It works! Thank you!

  4. #4
    Join Date
    Jun 2009
    Beans
    10

    Re: Start Thunderbird minimized to tray

    This is a bit of a hack, but it works great with the messaging menu. Much better than FireTray or any of those things, which don't really work in 11.04 anyhow.

    1. Install wmctrl
    2. Make a script called start_thunderbird_hidden.sh in ~/bin/ (you can of course change the name of the script and where you put it)
    3. $ chmod +x ~/bin/start_thunderbird_hidden.sh
    4. Make the contents of the script as follows:

    #!/bin/bash

    thunderbird &
    while [[ $(wmctrl -l | grep Thunderbird) == "" ]]; do sleep 0.1; done
    wmctrl -r Thunderbird -b add,skip_taskbar
    wmctrl -k on

    5. Go to Startup Applications -> add -> Command: ~/bin/start_thunderbird_hidden.sh

  5. #5
    Join Date
    Jun 2010
    Beans
    10

    Re: Start Thunderbird minimized to tray

    Looks like does not work on 11.04. Thunderbird does not appear at the tray.

    Best solution I found is following:

    1. Install "Fire tray" add-on in Thunderbird.

    2. Create following script and put it in Startup:

    Code:
     
    #!/bin/bash
    sleep 7
    thunderbird &
    while [ true ]
    do
       sleep 5
       status=`wmctrl -l | grep Thunderbird`
       if [ "$status" != "" ] ; then
          break
       fi
    done
    wmctrl -c "Mozilla Thunderbird"
    Reference: http://ubuntuforums.org/showthread.php?t=1603810
    Last edited by Pavluha88; June 26th, 2011 at 08:45 AM.

  6. #6
    Join Date
    Dec 2011
    Beans
    1

    Re: Start Thunderbird minimized to tray

    For futher reference, and for people like me who don't find fire tray easily.

    The above script is correct @ububot, but it does not answer the original poster question.

    Just comment/erase

    wmctrl -r Thunderbird -b add,skip_taskbar


    and add this:

    wmctrl -r Thunderbird -b add,hidden



    Even so, thunderbard will pop up for 0.2 seconds, but will hide.

    Enjoy.
    Last edited by silenzioKLZE; December 28th, 2011 at 07:40 AM.

  7. #7
    Join Date
    Jun 2010
    Beans
    10

    Re: Start Thunderbird minimized to tray

    Quote Originally Posted by silenzioKLZE View Post
    For futher reference, and for people like me who don't find fire tray easily.

    The above script is correct @ububot, but it does not answer the original poster question.

    Just comment/erase

    wmctrl -r Thunderbird -b add,skip_taskbar


    and add this:

    wmctrl -r Thunderbird -b add,hidden



    Even so, thunderbard will pop up for 0.2 seconds, but will hide.

    Enjoy.
    Could you please post full code of the script with your adds? Somewhy it stopped to work when I installed Ubuntu 11.10. Thanks.

  8. #8
    Join Date
    Jan 2012
    Beans
    2

    Re: Start Thunderbird minimized to tray

    Got this to work for me in 11.10

    1. Install wmctrl
    2. Make a script called start_thunderbird_hidden.sh in ~/bin/ (you can of course change the name of the script and where you put it)
    3. $ chmod +x ~/bin/start_thunderbird_hidden.sh
    4. Make the contents of the script as follows:

    ububot's script, with silenzioKLZE's modification:
    Code:
    #!/bin/bash
    
    thunderbird &
    while [[ $(wmctrl -l | grep Thunderbird) == "" ]]; do sleep 0.1; done
    wmctrl -r Thunderbird -b add,hidden
    wmctrl -k on
    Had to include the full path rather than using ~/ to get it to work
    5. Go to Startup Applications -> add -> Command: /home/<user>/bin/start_thunderbird_hidden.sh

    So all good...
    Is there a way to get rid of TB from the 'Icons on the left of the screen' while it is running (all the time) (whatever that is called (only new to linux))
    The 'minimize to tray' add-on, doesn't appear to do anything?
    nor does the 'minimize on start and close' add-on for that matter.

  9. #9
    Join Date
    Feb 2012
    Beans
    1

    Re: Start Thunderbird minimized to tray

    Got rid of the Icon on the left of the screen with the 'minimize to tray' on 11.10

    1. Install wmctrl
    2. Open Thunderbird and go to Add-ons Manager and search the Add-on "MinimizeToTray revived (MinTrayR) 1.0" then Add to Thunderbird.
    3. Restart Thunderbird
    4. Go to Add-ons Manager > Extentions > MinimizeToTray revived > Preferences
    5. Uncheck everything then check "Instead of closing".
    6. Create a new script or reuse "start_thunderbird_hidden.sh" with this script:

    #!/bin/bash
    sleep 15
    thunderbird &
    sleep 3
    wmctrl -c "Mozilla Thunderbird"

    7. Open "Startup Applications" click Add, then on the command Browse for the script.
    8. Reboot and test if it works

    Note: To close Thunderbird Ctrl+Q, Alt+F4 Minimizes it to Tray.

    Hope this helps.

  10. #10
    Join Date
    Aug 2011
    Beans
    6

    Re: Start Thunderbird minimized to tray

    Works on Ubuntu 12.04 flawlessly thank you.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •