How to start Thunderbird minimized on start-up?How to run Thunderbird on startup, minimised?How to make Thunderbird Mail runs at startup?How do I start applications automatically on login?How can I delay a specific program on startup?How do I hide Thunderbird from the launcher while running?How to keep Thunderbird and Pidgin running on background?How to open Thunderbird minimised at startup in Ubuntu 16.04How to start Thunderbird minimized to Unity system tray on start-up?Minimize Thunderbird to Traythunderbird script to disable option: “delete message on server”Why is Thunderbird pegging a core at 100%?Thunderbird resets profile after second start upClearing out Thunderbird on UbuntuThunderbird and a shared “home” partitionBidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computersWhy doesn't Ubuntu/Thunderbird save my PGP key?How to start Thunderbird minimized to Unity system tray on start-up?Recovering thunderbird files from quick formatted drive?
gerund and noun applications
In Aliens, how many people were on LV-426 before the Marines arrived?
Practical application of matrices and determinants
In the 1924 version of The Thief of Bagdad, no character is named, right?
If "dar" means "to give", what does "daros" mean?
How can an organ that provides biological immortality be unable to regenerate?
Deletion of copy-ctor & copy-assignment - public, private or protected?
Have the tides ever turned twice on any open problem?
How to terminate ping <dest> &
Unfrosted light bulb
Existence of a celestial body big enough for early civilization to be thought of as a second moon
What does "Four-F." mean?
Do I need to consider instance restrictions when showing a language is in P?
Does multi-classing into Fighter give you heavy armor proficiency?
Geography in 3D perspective
In what cases must I use 了 and in what cases not?
Describing a chess game in a novel
Violin - Can double stops be played when the strings are not next to each other?
How could an airship be repaired midflight?
Using Past-Perfect interchangeably with the Past Continuous
Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?
Print last inputted byte
Usage and meaning of "up" in "...worth at least a thousand pounds up in London"
Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?
How to start Thunderbird minimized on start-up?
How to run Thunderbird on startup, minimised?How to make Thunderbird Mail runs at startup?How do I start applications automatically on login?How can I delay a specific program on startup?How do I hide Thunderbird from the launcher while running?How to keep Thunderbird and Pidgin running on background?How to open Thunderbird minimised at startup in Ubuntu 16.04How to start Thunderbird minimized to Unity system tray on start-up?Minimize Thunderbird to Traythunderbird script to disable option: “delete message on server”Why is Thunderbird pegging a core at 100%?Thunderbird resets profile after second start upClearing out Thunderbird on UbuntuThunderbird and a shared “home” partitionBidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computersWhy doesn't Ubuntu/Thunderbird save my PGP key?How to start Thunderbird minimized to Unity system tray on start-up?Recovering thunderbird files from quick formatted drive?
I followed this tutorial to set start Thunderbird in minimized mode at startup, but it wasn't helpful.
After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .
So is there any working way to start Thunderbird minimized on start-up?
startup thunderbird
add a comment |
I followed this tutorial to set start Thunderbird in minimized mode at startup, but it wasn't helpful.
After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .
So is there any working way to start Thunderbird minimized on start-up?
startup thunderbird
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20
add a comment |
I followed this tutorial to set start Thunderbird in minimized mode at startup, but it wasn't helpful.
After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .
So is there any working way to start Thunderbird minimized on start-up?
startup thunderbird
I followed this tutorial to set start Thunderbird in minimized mode at startup, but it wasn't helpful.
After following the instructions, I could not even start Thunderbird. So I was forced to start TB in safe mode to delete the "FireTray Plugin" and fix this issue. After that it started to work but it deleted all my email accounts and I had to do that chore all over again .
So is there any working way to start Thunderbird minimized on start-up?
startup thunderbird
startup thunderbird
edited Jul 13 '14 at 13:55
Glutanimate
16.3k874132
16.3k874132
asked Jul 28 '12 at 22:15
LevanLevan
4,767216083
4,767216083
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20
add a comment |
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20
add a comment |
7 Answers
7
active
oldest
votes
http://ubuntuforums.org/showthread.php?t=1529056
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
add a comment |
I used this addon to start thunderbird in minimized mode by default and added a startup entry for thunderbird by following this guide.
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
add a comment |
Let me make it clear, at least for people like me.
Making sure that thunderbird is automatically started on logon, involves just three steps:
- Install "FireTray" addon on thunderbird
check "start application hidden to tray" option in FireTray preferences (Thunderbird -> Tools -> addons -> firetray -> preferences -> under tab "windows"
)- Follow this answer (its quick) to add thunderbird to startup (Note: the command field therein should be:
thunderbird
or/usr/bin/thunderbird
)
Note that FireTray addon is a must have. Most people don't actually mean to quit entirely like the default behavior is, when they say "close" to window. They sure expect thunderbird to run in background and notify of all new email arrivals. And FireTray deals exactly with this problem.
add a comment |
I am actually using Ubuntu 13.10, but this solution should work fine at least back to 12.04. Firetray is an extension for Firefox that makes it so you can minimize to tray on close, and minimize on startup (you'll see the Thunderbird window popup for a quick second, but it's hardly an issue). Then just add thunderbird to Startup Applications and when you login thunderbird will flash for a second then be minimized in your system tray. It also has full support for the default messaging menu so it doesn't create a secondary thunderbird icon.
Now for those that may have tried this in the past, I know that I tried Firetray a couple years ago and it wouldn't work at all, it had lots of bugs when used with modern Ubuntu, but the latest version seems to work flawlessly with Ubuntu (at least version 13.10, but I don't see why it wouldn't work with any other version).
add a comment |
- Press [Alt]+F2 to run command
- Run gnome-session-properties
- Add /usr/bin/thunderbird
add a comment |
For Ubuntu 18.04.
1) Install devilspie
package:
sudo apt install devilspie
2) Create ~/.devilspie
folder and thunderbird.ds
file in that folder:
mkdir -p ~/.devilspie && touch ~/.devilspie/thunderbird.ds
3) Paste this code in ~/.devilspie/thunderbird.ds
file:
(if
(is (window_name) "Mozilla Thunderbird")
(begin
(minimize)
)
)
4) Add devilspie
to Startup Applications
5) Add thunderbird
to Startup Applications
6) Optionally install Keep in Taskbar (add-on for Thunderbird that makes the Close button behave exactly like the Minimize one)
7) Reboot.
Tip: How to delay a specific program on startup
devilspie' docs:
https://web.archive.org/web/20160415011438/http://foosel.org/linux/devilspie
https://wiki.gnome.org/Projects/DevilsPie
https://help.ubuntu.com/community/Devilspie
add a comment |
Ubuntu 16.04.
Had the same problem and used following to achieve the goal. Autostart entry added running thunderbird through this script:
#!/usr/bin/env python3
import subprocess
import sys
import time
#
# Check out command
#
command = sys.argv[1]
#
# Run it as a subservice in own bash
#
subprocess.Popen(["/bin/bash", "-c", command])
#
# If a window name does not match command process name, add here.
# Check out by running :~$ wmctrl -lp
# Do not forget to enable the feature, seperate new by comma.
#
#windowProcessMatcher = 'CommandName':'WindowName'
#if command in windowProcessMatcher:
# command = ''.join(windowProcessMatcher[command])
#print("Command after terminator" + command)
#
# Set some values. t is the iteration counter, maxIter guess what?, and a careCycle to check twice.
#
t = 1
maxIter=30
wellDone=False
careCycle=True
sleepValue=0.1
#
# MaxIter OR if the minimize job is done will stop the script.
#
while not wellDone:
# And iteration count still under limit. Count*Sleep, example: 60*0.2 = 6 seconds should be enough.
# When we found a program
if t >= maxIter:
break
# Try while it could fail.
try:
# Gives us a list with all entries
w_list = [output.split() for output in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
# Why not check the list?
for entry in w_list:
# Can we find our command string in one of the lines? Here is the tricky part:
# When starting for example terminator is shows yourname@yourmaschine ~.
# Maybee some matching is needed here for your purposes. Simply replace the command name
# But for our purposes it should work out.
#
# Go ahead if nothing found!
if command not in (''.join(entry)).lower():
continue
#######
print("mt### We got a match and minimize the window!!!")
# First entry is our window pid
match = entry[0]
# If something is wrong with the value...try another one :-)
subprocess.Popen(["xdotool", "windowminimize", match])
#
# Maybee there will be more than one window running with our command name.
# Check the list till the end. And go one more iteration!
if careCycle:
# Boolean gives us one more iteration.
careCycle=False
break
else:
wellDone=True
except (IndexError, subprocess.CalledProcessError):
pass
t += 1
time.sleep(sleepValue)
if wellDone:
print(" ")
print("mt### Well Done!")
print("mt### Window found and minimize command send.")
print("mt### ByBy")
else:
print(" ")
print("mt### Seems that the window while counter expired or your process command did not start well.")
print("mt### == Go ahead. What can you do/try out now? ")
This should work for every other app too.
Good coding
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f169437%2fhow-to-start-thunderbird-minimized-on-start-up%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
http://ubuntuforums.org/showthread.php?t=1529056
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
add a comment |
http://ubuntuforums.org/showthread.php?t=1529056
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
add a comment |
http://ubuntuforums.org/showthread.php?t=1529056
http://ubuntuforums.org/showthread.php?t=1529056
answered Sep 6 '12 at 3:16
JackJack
822
822
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
add a comment |
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
26
26
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– fossfreedom♦
Sep 6 '12 at 11:44
add a comment |
I used this addon to start thunderbird in minimized mode by default and added a startup entry for thunderbird by following this guide.
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
add a comment |
I used this addon to start thunderbird in minimized mode by default and added a startup entry for thunderbird by following this guide.
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
add a comment |
I used this addon to start thunderbird in minimized mode by default and added a startup entry for thunderbird by following this guide.
I used this addon to start thunderbird in minimized mode by default and added a startup entry for thunderbird by following this guide.
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Sep 6 '12 at 4:14
GlutanimateGlutanimate
16.3k874132
16.3k874132
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
add a comment |
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
3
3
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
Thanks for pointing at this Minimize On Start and Close Add-On which seems to be the most straightforward way of Starting Thunderbird Minimized to Unity Launcher where you can see the new message count, etc. as well.
– Sadi
Nov 3 '13 at 10:48
add a comment |
Let me make it clear, at least for people like me.
Making sure that thunderbird is automatically started on logon, involves just three steps:
- Install "FireTray" addon on thunderbird
check "start application hidden to tray" option in FireTray preferences (Thunderbird -> Tools -> addons -> firetray -> preferences -> under tab "windows"
)- Follow this answer (its quick) to add thunderbird to startup (Note: the command field therein should be:
thunderbird
or/usr/bin/thunderbird
)
Note that FireTray addon is a must have. Most people don't actually mean to quit entirely like the default behavior is, when they say "close" to window. They sure expect thunderbird to run in background and notify of all new email arrivals. And FireTray deals exactly with this problem.
add a comment |
Let me make it clear, at least for people like me.
Making sure that thunderbird is automatically started on logon, involves just three steps:
- Install "FireTray" addon on thunderbird
check "start application hidden to tray" option in FireTray preferences (Thunderbird -> Tools -> addons -> firetray -> preferences -> under tab "windows"
)- Follow this answer (its quick) to add thunderbird to startup (Note: the command field therein should be:
thunderbird
or/usr/bin/thunderbird
)
Note that FireTray addon is a must have. Most people don't actually mean to quit entirely like the default behavior is, when they say "close" to window. They sure expect thunderbird to run in background and notify of all new email arrivals. And FireTray deals exactly with this problem.
add a comment |
Let me make it clear, at least for people like me.
Making sure that thunderbird is automatically started on logon, involves just three steps:
- Install "FireTray" addon on thunderbird
check "start application hidden to tray" option in FireTray preferences (Thunderbird -> Tools -> addons -> firetray -> preferences -> under tab "windows"
)- Follow this answer (its quick) to add thunderbird to startup (Note: the command field therein should be:
thunderbird
or/usr/bin/thunderbird
)
Note that FireTray addon is a must have. Most people don't actually mean to quit entirely like the default behavior is, when they say "close" to window. They sure expect thunderbird to run in background and notify of all new email arrivals. And FireTray deals exactly with this problem.
Let me make it clear, at least for people like me.
Making sure that thunderbird is automatically started on logon, involves just three steps:
- Install "FireTray" addon on thunderbird
check "start application hidden to tray" option in FireTray preferences (Thunderbird -> Tools -> addons -> firetray -> preferences -> under tab "windows"
)- Follow this answer (its quick) to add thunderbird to startup (Note: the command field therein should be:
thunderbird
or/usr/bin/thunderbird
)
Note that FireTray addon is a must have. Most people don't actually mean to quit entirely like the default behavior is, when they say "close" to window. They sure expect thunderbird to run in background and notify of all new email arrivals. And FireTray deals exactly with this problem.
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Oct 27 '16 at 1:24
Loves ProbabilityLoves Probability
1738
1738
add a comment |
add a comment |
I am actually using Ubuntu 13.10, but this solution should work fine at least back to 12.04. Firetray is an extension for Firefox that makes it so you can minimize to tray on close, and minimize on startup (you'll see the Thunderbird window popup for a quick second, but it's hardly an issue). Then just add thunderbird to Startup Applications and when you login thunderbird will flash for a second then be minimized in your system tray. It also has full support for the default messaging menu so it doesn't create a secondary thunderbird icon.
Now for those that may have tried this in the past, I know that I tried Firetray a couple years ago and it wouldn't work at all, it had lots of bugs when used with modern Ubuntu, but the latest version seems to work flawlessly with Ubuntu (at least version 13.10, but I don't see why it wouldn't work with any other version).
add a comment |
I am actually using Ubuntu 13.10, but this solution should work fine at least back to 12.04. Firetray is an extension for Firefox that makes it so you can minimize to tray on close, and minimize on startup (you'll see the Thunderbird window popup for a quick second, but it's hardly an issue). Then just add thunderbird to Startup Applications and when you login thunderbird will flash for a second then be minimized in your system tray. It also has full support for the default messaging menu so it doesn't create a secondary thunderbird icon.
Now for those that may have tried this in the past, I know that I tried Firetray a couple years ago and it wouldn't work at all, it had lots of bugs when used with modern Ubuntu, but the latest version seems to work flawlessly with Ubuntu (at least version 13.10, but I don't see why it wouldn't work with any other version).
add a comment |
I am actually using Ubuntu 13.10, but this solution should work fine at least back to 12.04. Firetray is an extension for Firefox that makes it so you can minimize to tray on close, and minimize on startup (you'll see the Thunderbird window popup for a quick second, but it's hardly an issue). Then just add thunderbird to Startup Applications and when you login thunderbird will flash for a second then be minimized in your system tray. It also has full support for the default messaging menu so it doesn't create a secondary thunderbird icon.
Now for those that may have tried this in the past, I know that I tried Firetray a couple years ago and it wouldn't work at all, it had lots of bugs when used with modern Ubuntu, but the latest version seems to work flawlessly with Ubuntu (at least version 13.10, but I don't see why it wouldn't work with any other version).
I am actually using Ubuntu 13.10, but this solution should work fine at least back to 12.04. Firetray is an extension for Firefox that makes it so you can minimize to tray on close, and minimize on startup (you'll see the Thunderbird window popup for a quick second, but it's hardly an issue). Then just add thunderbird to Startup Applications and when you login thunderbird will flash for a second then be minimized in your system tray. It also has full support for the default messaging menu so it doesn't create a secondary thunderbird icon.
Now for those that may have tried this in the past, I know that I tried Firetray a couple years ago and it wouldn't work at all, it had lots of bugs when used with modern Ubuntu, but the latest version seems to work flawlessly with Ubuntu (at least version 13.10, but I don't see why it wouldn't work with any other version).
answered Feb 4 '14 at 1:33
KoRnKloWnKoRnKloWn
537515
537515
add a comment |
add a comment |
- Press [Alt]+F2 to run command
- Run gnome-session-properties
- Add /usr/bin/thunderbird
add a comment |
- Press [Alt]+F2 to run command
- Run gnome-session-properties
- Add /usr/bin/thunderbird
add a comment |
- Press [Alt]+F2 to run command
- Run gnome-session-properties
- Add /usr/bin/thunderbird
- Press [Alt]+F2 to run command
- Run gnome-session-properties
- Add /usr/bin/thunderbird
edited Aug 1 '18 at 22:22
answered Aug 1 '18 at 22:00
Simon RigétSimon Rigét
993
993
add a comment |
add a comment |
For Ubuntu 18.04.
1) Install devilspie
package:
sudo apt install devilspie
2) Create ~/.devilspie
folder and thunderbird.ds
file in that folder:
mkdir -p ~/.devilspie && touch ~/.devilspie/thunderbird.ds
3) Paste this code in ~/.devilspie/thunderbird.ds
file:
(if
(is (window_name) "Mozilla Thunderbird")
(begin
(minimize)
)
)
4) Add devilspie
to Startup Applications
5) Add thunderbird
to Startup Applications
6) Optionally install Keep in Taskbar (add-on for Thunderbird that makes the Close button behave exactly like the Minimize one)
7) Reboot.
Tip: How to delay a specific program on startup
devilspie' docs:
https://web.archive.org/web/20160415011438/http://foosel.org/linux/devilspie
https://wiki.gnome.org/Projects/DevilsPie
https://help.ubuntu.com/community/Devilspie
add a comment |
For Ubuntu 18.04.
1) Install devilspie
package:
sudo apt install devilspie
2) Create ~/.devilspie
folder and thunderbird.ds
file in that folder:
mkdir -p ~/.devilspie && touch ~/.devilspie/thunderbird.ds
3) Paste this code in ~/.devilspie/thunderbird.ds
file:
(if
(is (window_name) "Mozilla Thunderbird")
(begin
(minimize)
)
)
4) Add devilspie
to Startup Applications
5) Add thunderbird
to Startup Applications
6) Optionally install Keep in Taskbar (add-on for Thunderbird that makes the Close button behave exactly like the Minimize one)
7) Reboot.
Tip: How to delay a specific program on startup
devilspie' docs:
https://web.archive.org/web/20160415011438/http://foosel.org/linux/devilspie
https://wiki.gnome.org/Projects/DevilsPie
https://help.ubuntu.com/community/Devilspie
add a comment |
For Ubuntu 18.04.
1) Install devilspie
package:
sudo apt install devilspie
2) Create ~/.devilspie
folder and thunderbird.ds
file in that folder:
mkdir -p ~/.devilspie && touch ~/.devilspie/thunderbird.ds
3) Paste this code in ~/.devilspie/thunderbird.ds
file:
(if
(is (window_name) "Mozilla Thunderbird")
(begin
(minimize)
)
)
4) Add devilspie
to Startup Applications
5) Add thunderbird
to Startup Applications
6) Optionally install Keep in Taskbar (add-on for Thunderbird that makes the Close button behave exactly like the Minimize one)
7) Reboot.
Tip: How to delay a specific program on startup
devilspie' docs:
https://web.archive.org/web/20160415011438/http://foosel.org/linux/devilspie
https://wiki.gnome.org/Projects/DevilsPie
https://help.ubuntu.com/community/Devilspie
For Ubuntu 18.04.
1) Install devilspie
package:
sudo apt install devilspie
2) Create ~/.devilspie
folder and thunderbird.ds
file in that folder:
mkdir -p ~/.devilspie && touch ~/.devilspie/thunderbird.ds
3) Paste this code in ~/.devilspie/thunderbird.ds
file:
(if
(is (window_name) "Mozilla Thunderbird")
(begin
(minimize)
)
)
4) Add devilspie
to Startup Applications
5) Add thunderbird
to Startup Applications
6) Optionally install Keep in Taskbar (add-on for Thunderbird that makes the Close button behave exactly like the Minimize one)
7) Reboot.
Tip: How to delay a specific program on startup
devilspie' docs:
https://web.archive.org/web/20160415011438/http://foosel.org/linux/devilspie
https://wiki.gnome.org/Projects/DevilsPie
https://help.ubuntu.com/community/Devilspie
edited Aug 6 '18 at 11:22
answered Jul 13 '18 at 15:35
grisfergrisfer
1565
1565
add a comment |
add a comment |
Ubuntu 16.04.
Had the same problem and used following to achieve the goal. Autostart entry added running thunderbird through this script:
#!/usr/bin/env python3
import subprocess
import sys
import time
#
# Check out command
#
command = sys.argv[1]
#
# Run it as a subservice in own bash
#
subprocess.Popen(["/bin/bash", "-c", command])
#
# If a window name does not match command process name, add here.
# Check out by running :~$ wmctrl -lp
# Do not forget to enable the feature, seperate new by comma.
#
#windowProcessMatcher = 'CommandName':'WindowName'
#if command in windowProcessMatcher:
# command = ''.join(windowProcessMatcher[command])
#print("Command after terminator" + command)
#
# Set some values. t is the iteration counter, maxIter guess what?, and a careCycle to check twice.
#
t = 1
maxIter=30
wellDone=False
careCycle=True
sleepValue=0.1
#
# MaxIter OR if the minimize job is done will stop the script.
#
while not wellDone:
# And iteration count still under limit. Count*Sleep, example: 60*0.2 = 6 seconds should be enough.
# When we found a program
if t >= maxIter:
break
# Try while it could fail.
try:
# Gives us a list with all entries
w_list = [output.split() for output in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
# Why not check the list?
for entry in w_list:
# Can we find our command string in one of the lines? Here is the tricky part:
# When starting for example terminator is shows yourname@yourmaschine ~.
# Maybee some matching is needed here for your purposes. Simply replace the command name
# But for our purposes it should work out.
#
# Go ahead if nothing found!
if command not in (''.join(entry)).lower():
continue
#######
print("mt### We got a match and minimize the window!!!")
# First entry is our window pid
match = entry[0]
# If something is wrong with the value...try another one :-)
subprocess.Popen(["xdotool", "windowminimize", match])
#
# Maybee there will be more than one window running with our command name.
# Check the list till the end. And go one more iteration!
if careCycle:
# Boolean gives us one more iteration.
careCycle=False
break
else:
wellDone=True
except (IndexError, subprocess.CalledProcessError):
pass
t += 1
time.sleep(sleepValue)
if wellDone:
print(" ")
print("mt### Well Done!")
print("mt### Window found and minimize command send.")
print("mt### ByBy")
else:
print(" ")
print("mt### Seems that the window while counter expired or your process command did not start well.")
print("mt### == Go ahead. What can you do/try out now? ")
This should work for every other app too.
Good coding
New contributor
add a comment |
Ubuntu 16.04.
Had the same problem and used following to achieve the goal. Autostart entry added running thunderbird through this script:
#!/usr/bin/env python3
import subprocess
import sys
import time
#
# Check out command
#
command = sys.argv[1]
#
# Run it as a subservice in own bash
#
subprocess.Popen(["/bin/bash", "-c", command])
#
# If a window name does not match command process name, add here.
# Check out by running :~$ wmctrl -lp
# Do not forget to enable the feature, seperate new by comma.
#
#windowProcessMatcher = 'CommandName':'WindowName'
#if command in windowProcessMatcher:
# command = ''.join(windowProcessMatcher[command])
#print("Command after terminator" + command)
#
# Set some values. t is the iteration counter, maxIter guess what?, and a careCycle to check twice.
#
t = 1
maxIter=30
wellDone=False
careCycle=True
sleepValue=0.1
#
# MaxIter OR if the minimize job is done will stop the script.
#
while not wellDone:
# And iteration count still under limit. Count*Sleep, example: 60*0.2 = 6 seconds should be enough.
# When we found a program
if t >= maxIter:
break
# Try while it could fail.
try:
# Gives us a list with all entries
w_list = [output.split() for output in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
# Why not check the list?
for entry in w_list:
# Can we find our command string in one of the lines? Here is the tricky part:
# When starting for example terminator is shows yourname@yourmaschine ~.
# Maybee some matching is needed here for your purposes. Simply replace the command name
# But for our purposes it should work out.
#
# Go ahead if nothing found!
if command not in (''.join(entry)).lower():
continue
#######
print("mt### We got a match and minimize the window!!!")
# First entry is our window pid
match = entry[0]
# If something is wrong with the value...try another one :-)
subprocess.Popen(["xdotool", "windowminimize", match])
#
# Maybee there will be more than one window running with our command name.
# Check the list till the end. And go one more iteration!
if careCycle:
# Boolean gives us one more iteration.
careCycle=False
break
else:
wellDone=True
except (IndexError, subprocess.CalledProcessError):
pass
t += 1
time.sleep(sleepValue)
if wellDone:
print(" ")
print("mt### Well Done!")
print("mt### Window found and minimize command send.")
print("mt### ByBy")
else:
print(" ")
print("mt### Seems that the window while counter expired or your process command did not start well.")
print("mt### == Go ahead. What can you do/try out now? ")
This should work for every other app too.
Good coding
New contributor
add a comment |
Ubuntu 16.04.
Had the same problem and used following to achieve the goal. Autostart entry added running thunderbird through this script:
#!/usr/bin/env python3
import subprocess
import sys
import time
#
# Check out command
#
command = sys.argv[1]
#
# Run it as a subservice in own bash
#
subprocess.Popen(["/bin/bash", "-c", command])
#
# If a window name does not match command process name, add here.
# Check out by running :~$ wmctrl -lp
# Do not forget to enable the feature, seperate new by comma.
#
#windowProcessMatcher = 'CommandName':'WindowName'
#if command in windowProcessMatcher:
# command = ''.join(windowProcessMatcher[command])
#print("Command after terminator" + command)
#
# Set some values. t is the iteration counter, maxIter guess what?, and a careCycle to check twice.
#
t = 1
maxIter=30
wellDone=False
careCycle=True
sleepValue=0.1
#
# MaxIter OR if the minimize job is done will stop the script.
#
while not wellDone:
# And iteration count still under limit. Count*Sleep, example: 60*0.2 = 6 seconds should be enough.
# When we found a program
if t >= maxIter:
break
# Try while it could fail.
try:
# Gives us a list with all entries
w_list = [output.split() for output in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
# Why not check the list?
for entry in w_list:
# Can we find our command string in one of the lines? Here is the tricky part:
# When starting for example terminator is shows yourname@yourmaschine ~.
# Maybee some matching is needed here for your purposes. Simply replace the command name
# But for our purposes it should work out.
#
# Go ahead if nothing found!
if command not in (''.join(entry)).lower():
continue
#######
print("mt### We got a match and minimize the window!!!")
# First entry is our window pid
match = entry[0]
# If something is wrong with the value...try another one :-)
subprocess.Popen(["xdotool", "windowminimize", match])
#
# Maybee there will be more than one window running with our command name.
# Check the list till the end. And go one more iteration!
if careCycle:
# Boolean gives us one more iteration.
careCycle=False
break
else:
wellDone=True
except (IndexError, subprocess.CalledProcessError):
pass
t += 1
time.sleep(sleepValue)
if wellDone:
print(" ")
print("mt### Well Done!")
print("mt### Window found and minimize command send.")
print("mt### ByBy")
else:
print(" ")
print("mt### Seems that the window while counter expired or your process command did not start well.")
print("mt### == Go ahead. What can you do/try out now? ")
This should work for every other app too.
Good coding
New contributor
Ubuntu 16.04.
Had the same problem and used following to achieve the goal. Autostart entry added running thunderbird through this script:
#!/usr/bin/env python3
import subprocess
import sys
import time
#
# Check out command
#
command = sys.argv[1]
#
# Run it as a subservice in own bash
#
subprocess.Popen(["/bin/bash", "-c", command])
#
# If a window name does not match command process name, add here.
# Check out by running :~$ wmctrl -lp
# Do not forget to enable the feature, seperate new by comma.
#
#windowProcessMatcher = 'CommandName':'WindowName'
#if command in windowProcessMatcher:
# command = ''.join(windowProcessMatcher[command])
#print("Command after terminator" + command)
#
# Set some values. t is the iteration counter, maxIter guess what?, and a careCycle to check twice.
#
t = 1
maxIter=30
wellDone=False
careCycle=True
sleepValue=0.1
#
# MaxIter OR if the minimize job is done will stop the script.
#
while not wellDone:
# And iteration count still under limit. Count*Sleep, example: 60*0.2 = 6 seconds should be enough.
# When we found a program
if t >= maxIter:
break
# Try while it could fail.
try:
# Gives us a list with all entries
w_list = [output.split() for output in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
# Why not check the list?
for entry in w_list:
# Can we find our command string in one of the lines? Here is the tricky part:
# When starting for example terminator is shows yourname@yourmaschine ~.
# Maybee some matching is needed here for your purposes. Simply replace the command name
# But for our purposes it should work out.
#
# Go ahead if nothing found!
if command not in (''.join(entry)).lower():
continue
#######
print("mt### We got a match and minimize the window!!!")
# First entry is our window pid
match = entry[0]
# If something is wrong with the value...try another one :-)
subprocess.Popen(["xdotool", "windowminimize", match])
#
# Maybee there will be more than one window running with our command name.
# Check the list till the end. And go one more iteration!
if careCycle:
# Boolean gives us one more iteration.
careCycle=False
break
else:
wellDone=True
except (IndexError, subprocess.CalledProcessError):
pass
t += 1
time.sleep(sleepValue)
if wellDone:
print(" ")
print("mt### Well Done!")
print("mt### Window found and minimize command send.")
print("mt### ByBy")
else:
print(" ")
print("mt### Seems that the window while counter expired or your process command did not start well.")
print("mt### == Go ahead. What can you do/try out now? ")
This should work for every other app too.
Good coding
New contributor
New contributor
answered 24 mins ago
M.T.M.T.
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f169437%2fhow-to-start-thunderbird-minimized-on-start-up%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate? askubuntu.com/questions/68640/…
– fossfreedom♦
Jul 28 '12 at 22:40
Might be a duplicate of this question: askubuntu.com/questions/68284/…
– Glutanimate
Sep 6 '12 at 4:20