# How to start app minimised?

**URL:** <https://forum.juce.com/t/how-to-start-app-minimised/7230>\
**Category:** General JUCE discussion\
**Created:** [July 31, 2011, 9:44am UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230 "2011-07-31T09:44:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ans](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ans/32/617_2.png) [@ans](https://forum.juce.com/u/ans)\
**Post date:** [July 31, 2011, 9:44am UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230/1 "2011-07-31T09:44:46Z")

</div>

It looks I am having difficulties starting a Juce app initially minimised. I want the document window to appear minimised in the task bar (dock) on startup, because the app is sort of a background service.

The only way I could achieve this currently is to minimise it after the window opened, but that flashes the window on screen, which is suboptimal and confuses the user.

Any idea?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 31, 2011, 10:42am UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230/2 "2011-07-31T10:42:00Z")

</div>

Why have a window at all? On OSX you’ll still have a dock icon and main menu even if you have no window.

---

<div class="post-metadata">

**Author:** ![ans](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ans/32/617_2.png) [@ans](https://forum.juce.com/u/ans)\
**Post date:** [July 31, 2011, 1:17pm UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230/3 "2011-07-31T13:17:18Z")

</div>

Yeah, I already thought about that. But how would that work on Windows?

Would a system tray menu work? Does Juce support that?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 31, 2011, 5:09pm UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230/4 "2011-07-31T17:09:22Z")

</div>

Yes, there’s a system tray class that you could use on windows.

---

<div class="post-metadata">

**Author:** ![ans](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ans/32/617_2.png) [@ans](https://forum.juce.com/u/ans)\
**Post date:** [July 31, 2011, 5:36pm UTC](https://forum.juce.com/t/how-to-start-app-minimised/7230/5 "2011-07-31T17:36:50Z")

</div>

Ah, great to know. I never made myself familiar with the system tray and how it actually integrates with applications. Thought it was impossible on Windows to run an app without a window. I will see if I can add the option to open the main window from the system tray and also close the app from there.

Thanks!
