Re: Linux daemon with wxWidgets

Сергей Коныгин <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Thanks!
Now I have the compiled wxWidgets with GTK and so on. Do I need to rebuild 
wxWidgets without GUI for Linux daemon? If so how can I do it?

среда, 21 февраля 2024 г. в 14:01:56 UTC+4, Simon Richter: 

> 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/32c85c2b-c7a0-44ad-9ec0-e4b41ea5c5b0n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.