# Cannot quit app made with Juce

**URL:** <https://forum.juce.com/t/cannot-quit-app-made-with-juce/57283>\
**Category:** MacOSX and iOS\
**Created:** [August 2, 2023, 6:12pm UTC](https://forum.juce.com/t/cannot-quit-app-made-with-juce/57283 "2023-08-02T18:12:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emenden](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@emenden](https://forum.juce.com/u/emenden)\
**Post date:** [August 2, 2023, 6:12pm UTC](https://forum.juce.com/t/cannot-quit-app-made-with-juce/57283/1 "2023-08-02T18:12:04Z")

</div>

Hi,  
I am using JUCE 7.0.5 and created a small app for Mac.  
It displays an icon (system tray icon) on the top bar.  
I want to right click on the icon and choose the from a dropdown the option Quit.

I am displaying a native popupmenu using:  
juce::SystemTrayIconComponent::showDropdownMenu() and trying to quit after a menu item click using juce::JuceApplication::Quit **it will not quit until I click again the system tray icon.**

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/a/7/a7397553f8001c88d86ba9ae9918b553bc065441.png)

This seems like a bug because when I set it to right click and immediately quit it works (without going to select the Quit option from the drop down)

Any help will be greatly appreciated!  
Thank you

---

<div class="post-metadata">

**Author:** ![emenden](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@emenden](https://forum.juce.com/u/emenden)\
**Post date:** [August 3, 2023, 6:07pm UTC](https://forum.juce.com/t/cannot-quit-app-made-with-juce/57283/2 "2023-08-03T18:07:37Z")

</div>

as a workaround this i used the system command: killall myappname to quit the app.
