davidedmundson / xembed-sni-proxy

Convert XEmbed system tray icons to SNI icons
GNU General Public License v2.0
32 stars 6 forks source link

exit when another instance for current user already is running #11

Closed ZaWertun closed 8 years ago

davidedmundson commented 8 years ago

Thanks. Code itself looks fine.

but in theory if we have this already.

If we fail to claim the _NET_SYSTEM_TRAY on the root window we will exit and that gives us our mutex "for free".

You're right that it doesn't work, but that seems more like we need to fix KSelectionOwner to emit failedToClaimOwnership properly.

We should have a look at fixing that first.

ZaWertun commented 8 years ago

Ok :) I make the changes as soon as I saw 5-6 instances of xembedsniproxy running at the same time. Then I will wait for a fix.