Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3832  / 1 Year ago, thu, may 18, 2023, 10:56:22

I want to have thunerbird minimized when I turn on the laptops.



when I do this: vi /etc/xdg/lxsession/Lubuntu/autostart and added @thunderbird every time I turned it on a popup apear say that thunderbird is already running... but it works just fine.




  • How do I clear that popup?

  • how do I run it minimezed?


More From » thunderbird

 Answers
7

If you add your startup application into /etc/xdg/lxsession/Lubuntu/autostart it will be run automatically twice - its just the way LXDE does stuff.



You can create an equivalent file and folder in your local home folder - this will autostart programs once.



mkdir -p ~/.config/lxsession/Lubuntu
nano autostart


add the text thunderbird into this file and save the file.



As to how to minimize the application on startup - this was recently discussed on ubuntuforums



In summary - install wmctrl



Create a script file called ~/start_thunderbird_hidden.sh



Copy and paste the following contents:



#!/bin/bash

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


Give this file execute rights:



chmod +x ~/start_thunderbird_hidden.sh


Then, instead of thunderbird in the autostart file above, use /home/[youraccount]/start_thunderbird_hidder.sh


[#40517] Friday, May 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heaco

Total Points: 479
Total Questions: 124
Total Answers: 114

Location: Lesotho
Member since Sat, Oct 1, 2022
2 Years ago
;