davidedmundson / xembed-sni-proxy

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

Many xembedsniproxy processes running #20

Closed stativ closed 9 years ago

stativ commented 9 years ago

I'm not sure whether this is xembed-sni-proxy problem, but I noticed that with every login to plasma, new xembedsniproxy process is spawned.

Eg. this is how the process list looks like on my system right now:

[lukas@black-dragon xembed-sni-proxy-git]$ ps ax | grep xembed
  639 ?        Sl     0:00 /usr/bin/xembedsniproxy
  642 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144587854900000005260004_1445880824_976082
  645 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144581072700000209940006_1445880824_976291
  647 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144579980400000005240008_1445880824_976507
  650 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144554437600000107170007_1445880824_976498
  652 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144545951500000042670005_1445880824_976711
  658 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144553186400000004570004_1445880824_976714
  661 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144544419700000005310005_1445880824_976936
  664 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144535678900000005360006_1445880824_976930
  667 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144527691500000005440004_1445880824_977145
  669 ?        Sl     0:00 /usr/bin/xembedsniproxy -session 1012e100134143000144528707200000031150004_1445880824_977145
davidedmundson commented 9 years ago

Two bugs.

One: we're being respawned by teh session manager as "this app was running last session". We need to deregister from that

Two: We should close if another systray is running

davidedmundson commented 9 years ago

Session manager part is fixed

davidedmundson commented 9 years ago

Second part is fixed.

QCoreApplication::exit() no-ops if the event loop isn't running