Allow GPUI applications to run in the background #40318
Unanswered
Tryanks
asked this question in
Help and General Q&A
Replies: 1 comment 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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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