[Gambas-devel] gb.desktop detect a running application

Jussi Lahtinen jussi.lahtinen at ...176...
Mon Aug 27 17:51:16 CEST 2012


> Not at all.
>
> A X11 desktop is a server whose applications do not necessarily come
> from the same client.
>
> So to detect that an application is already running is tricky: two
> processes from the same executable on the same machine can run on two
> different desktops, how could you know that?
>
> I think that an X11 application can register some properties on the root
> windows so that it knows that it already runs on that desktop. I think
> it may be a standard, but I don't go deeper than that at the moment.
>
> Otherwise, this split between the desktop (X11) and the systems that run
> the application seems to be dumped with D-Bus and Wayland, so let's see!
>


Maybe I missed something or I don't know enough about X11,
but doesn't pgrep list all processes no matter who started them and from
where?

If I'm wrong, is there way I could demonstrate this problem?


Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120827/ade32fdb/attachment.html>


More information about the Devel mailing list