# Prevent desktop app from being closed

**URL:** <https://forum.phoscon.de/t/prevent-desktop-app-from-being-closed/5032>\
**Category:** Advice\
**Created:** [August 1, 2024, 7:27pm UTC](https://forum.phoscon.de/t/prevent-desktop-app-from-being-closed/5032 "2024-08-01T19:27:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danube](https://forum.phoscon.de/user_avatar/forum.phoscon.de/danube/32/3555_2.png) [@danube](https://forum.phoscon.de/u/danube)\
**Post date:** [August 1, 2024, 7:27pm UTC](https://forum.phoscon.de/t/prevent-desktop-app-from-being-closed/5032/1 "2024-08-01T19:27:46Z")

</div>

Service `deconz-gui` is started automatically on boot. It loads the deCONZ desktop app. Can I somehow prevent this desktop app from being closed (i.e. via VNC)?

Plan B would be to switch over to run deconz service without GUI, but I really love to see all those fancy things and connectors which remind me, that this crazy shit works.

Thanks! Thomas

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [August 2, 2024, 3:07pm UTC](https://forum.phoscon.de/t/prevent-desktop-app-from-being-closed/5032/2 "2024-08-02T15:07:21Z")

</div>

IDK, it’s personnal but I hate application I can’t close when I want.  
What is your third app, for me it’s the sofware that make the watchdog and make an error message if deconz is not available.

---

<div class="post-metadata">

**Author:** ![danube](https://forum.phoscon.de/user_avatar/forum.phoscon.de/danube/32/3555_2.png) [@danube](https://forum.phoscon.de/u/danube)\
**Post date:** [August 2, 2024, 7:14pm UTC](https://forum.phoscon.de/t/prevent-desktop-app-from-being-closed/5032/3 "2024-08-02T19:14:31Z")

</div>

Node-RED monitors the availability of the deCONZ service and sends a notification if it is not available.

The GUI app should still be able to be closed and started via `systemctl`, I’m just looking for a way to prevent the GUI app from being closed via GUI controls.

A nice feature would be to have a are-you-sure-you-want-to-close-the-app dialog. But there is none.
