[Mono-dev] Status of Win32/SystemEvents

Oskar Berggren oskar.berggren at gmail.com
Tue Dec 25 17:35:41 UTC 2012


2012/12/25  <mabra at manfbraun.de>:
> Hello !
>
> Thanks for the reply.
>
> My app will be two-fold: A service-like element and an UI like
> element. I have the biggest need for this event in the service
> layer - and now, according to your insides - I am out of hope?
>
> How does other software handle this [pre-shutdown notification,
> time-chnages and so on] ??

I think very few applications outside those provided by the desktop
environment or the linux distribution actually cares about such
things. For desktop environments there is the concept of a "session"
and I suppose either the X Window System or each desktop environment
can signal somehow when it's about to end.


> I've just read about "upstart". Is
> there a common API to that, so I could start to write one or
> the other function/API call with Interop ??

When a UNIX kernel has finished booting it will launch exactly one
user-space process, which is then supposed to launch everything else.
This is traditionally call "init", but upstart and systemd are fairly
recent and competing alternatives. The most canonical way for them to
signal system shutdown is to ask each process to terminate using a
UNIX signal.

>
> Does probably have the java guys more system wrappers, so
> that I should evaluate java ??
>
> But now, I understand, why all my desktop apps - that, I saw until
> now, never saves anythings, if I log off ....



An easier way forward may be if you can describe a bit more what the
end result you're trying to accomplish is. Perhaps the best way to
handle it is conceptually different than on Windows.

/Oskar


More information about the Mono-devel-list mailing list