This website uses Google Analytics and Advertising cookies, used to generate statistical data on how visitors uses this website (with IP anonymization) and to deliver personalized ads based on user prior visits to this website or other websites. [read more]
These cookies are disabled by default until your Accept/Reject Consent.
The Consent can be changed at any time by accesing the ePrivacy button located at the bottom of every page. Enjoy your visit!



Launch Thunderbird minimized at the Ubuntu startup

If you want that you preffered email client, Thunderbird, to be launched at Ubuntu startup, it's simple.
But what if you want that Thunderbird instance to be also minimized? There is not an easy or direct way to do that, at least not a native Thunderbird startup using switches, neither native plugins.

But if still want the minimized Thunderbird at the system startup, look no more, you can accomplish that in few lines of code. The hard work is already done.
The solution provided is based on a simple yet effective python script that send the "minimize" command to an open window.

How to run a minimized instance of Thunderbird at the Ubuntu startup

Download the python script, hard link it to /usr/local/bin, make it executable and add two entries to the Startup Applications.
sudo apt install wmctrl xdotool
cd ~ && wget https://raw.githubusercontent.com/b247/b247/master/minimize_me.py
sudo ln minimize_me.py /usr/local/bin/minimize_me && sudo chmod +x /usr/local/bin/minimize_me
Pop!OS Startup Applications
Launch the Startup Applications applet and add the following entries:
Name: Thunderbird
Command: thunderbird
and
Name: Thunderbird minimized
Command: minimize_me thunderbird
the second command is the above python script launched with parameter "thunderbird", meaning: "minimize the window associated with application named thunderbird"
that's it, reboot the computer and you will see the magic

Many thanks to:
Jacob Vlijm from askubuntu.com for the python script and to #ubuntu and #ubuntu-ro comunity for guidance.

label_outline

Share this post on your favorite networks.
© Copyright 2017 b247.eu.org | Just another information technology blog - All Rights Reserved