# (standalone app) minimise at startup?

**URL:** <https://forum.juce.com/t/standalone-app-minimise-at-startup/61793>\
**Category:** General JUCE discussion\
**Created:** [June 11, 2024, 9:09am UTC](https://forum.juce.com/t/standalone-app-minimise-at-startup/61793 "2024-06-11T09:09:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfilaretti](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dfilaretti/32/16818_2.png) [@dfilaretti](https://forum.juce.com/u/dfilaretti)\
**Post date:** [June 11, 2024, 9:09am UTC](https://forum.juce.com/t/standalone-app-minimise-at-startup/61793/1 "2024-06-11T09:09:00Z")

</div>

Hi all, we’re working on a standalone app and would like it to be minimised when it starts (based on some input argument).

I tried calling `DocumentWindow::setMinimised (true)` early on in the startup code which almost works but it’s not ideal, as we first see the window being created and then after a moment it goes minimised.

What we’d like is for the app to be already minimised as it starts, without even showing the window…

Is that even possible? Any thoughts?

PS: I’m currently working on Mac but obviously it should work on Windows too.

Thanks!! 🙂

---

<div class="post-metadata">

**Author:** ![harsha](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/harsha/32/17854_2.png) [@harsha](https://forum.juce.com/u/harsha)\
**Post date:** [June 11, 2024, 10:28am UTC](https://forum.juce.com/t/standalone-app-minimise-at-startup/61793/2 "2024-06-11T10:28:48Z")

</div>

maybe setVisible(false) ? at startup, then setVisible(true) after minimising

---

<div class="post-metadata">

**Author:** ![dfilaretti](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dfilaretti/32/16818_2.png) [@dfilaretti](https://forum.juce.com/u/dfilaretti)\
**Post date:** [June 11, 2024, 11:45am UTC](https://forum.juce.com/t/standalone-app-minimise-at-startup/61793/3 "2024-06-11T11:45:07Z")

</div>

Yeah this sounds like the right logic, but doesn’t seem to work unfortunately.  
Chat GPT suggests following the same idea but using some platform-dependent code.  
I’m giving it a go to see if it works.
