Re: Linux daemon with wxWidgets
Simon Richter <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On 2/21/24 13:51, Сергей Коныгин wrote:
> I want to create a linux daemon that uses wxWidgets. But I couldn't find
> any examples. The example of the windows service uses
> IMPLEMENT_APP_NO_MAIN(MainApp) alongside the function WinMain.
> Can I use IMPLEMENT_APP_NO_MAIN(MainApp) with function "main"?
In principle, yes. Linux daemons need to do a lot less early setup
compared to a Windows service, so you might even get away with a normal
IMPLEMENT_APP_CONSOLE and using the provided "main" function.
The _CONSOLE is there because daemons normally don't have GUI access.
Normally the daemon would provide a network service, and accept
connections from GUI programs that control it.
If the service is meant to be used from the local desktop only, then
dbus is the appropriate connection mechanism.
Simon
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/d3e6955e-301d-4cb0-9351-f374e65ad43a%40hogyros.de.