Allow GPUI applications to run in the background #40318
Replies: 2 comments 1 reply
-
|
I have the same use case. I want to write some sort of daemon which constantly runs in the background, but can also spawn a "settings" window. To keep the app simple, this should use the same event loop / state. In iced this is easy to do, but I don't know how to do it with GPUI. Any suggestions are welcome! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for reaching out. We want to better support our community, and the best way for us to do that is through our official Discord. The team is active there and happy to help. We’re closing the “Help and General Q&A” category on GitHub Discussions and directing all support questions to Discord going forward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I have been using GPUI to write some applications. I want to develop a "service process with a settings interface," so naturally, I thought of keeping them running in the system tray.
To achieve this, I have read and learned about the following discussions in the community:
hide,activatemethod on Windows to hide/show application" #18571 The "hide" window method was called back because there was no way to restore the window (lacking features like a tray icon)For manually integrating external projects like tray-icon on the user side, there is no good way to keep the application running because releasing the GPUI instance also forcibly terminates the system process where the main thread is located. Moreover, there is also an issue of both sides competing for the main thread.
Beta Was this translation helpful? Give feedback.
All reactions