Re: GUnique [Was: gnome-utils branched for GNOME 2.16]
- From: Emmanuele Bassi <ebassi gmail com>
- To: desktop-devel-list gnome org
- Subject: Re: GUnique [Was: gnome-utils branched for GNOME 2.16]
- Date: Sat, 23 Sep 2006 20:23:14 +0100
On Sat, 2006-09-23 at 19:39 +0200, Marco Barisione wrote:
> Jeff Waugh wrote:
> > Is this API appropriate for GTK+ and adaptable for use with Windows
> > and OS X?
>
> OS X could use the bacon backend (that uses Unix domain sockets).
>
> On Windows AF_UNIX is not available, but Windows has named pipes that
> are more similar to sockets than to Unix named pipes. However only the
> client part of named pipes is supported on Windows 9x/Me.
Single instance applications on Windows NT/XP use the named mutex
pattern[1], to which we can provide a nice wrapper using GUnique I
think.
I think we can use a platform-based approach:
* D-Bus, Xlibs and bacon on *nix on a soft dependency basis;
* bacon on OS X;
* named mutex and bacon on win32.
> If we want to support Windows 9x/Me we could use mailslots[1] or plain
> sockets.
since GTK+ HEAD dropped support for 9x/ME, if GUnique is slated to be
integrated into GTK+ I think we can safely assume that 9x/ME are an
unsupported platform.
+++
[1] http://windowssdk.msdn.microsoft.com/en-us/library/ms682418.aspx
Ciao,
Emmanuele.
--
Emmanuele Bassi, E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]