Re: GUnique [Was: gnome-utils branched for GNOME 2.16]
- From: Alex Jones <alex weej com>
- To: desktop-devel-list gnome org
- Subject: Re: GUnique [Was: gnome-utils branched for GNOME 2.16]
- Date: Sun, 24 Sep 2006 16:19:20 +0100
Hi, list
As an alternative to GUnique, you could do the kind of thing Maemo does
just by using D-Bus.
http://live.gnome.org/DesktopAppsAsDBusServices
(Crappy write-up, but I just haven't had time to sort it out. Sorry!)
On Sun, 2006-09-24 at 16:07 +0100, Emmanuele Bassi wrote:
> Hi;
>
> On Sun, 2006-09-24 at 13:47 +0200, Marco Barisione wrote:
> > Emmanuele Bassi wrote:
>
> > >> 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 know but GUniqueApp requires communication between the "server" and
> > the "client", using named mutex you can't communicate.
>
> Mmmh, right.
>
> > > 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.
> >
> > Bacon on win32?
>
> With modification for using sockets on win32 instead of a named pipe.
>
> Ciao,
> Emmanuele.
>
--
Alex Jones <alex weej com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]