Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple/Duplicate icons for some applications #10

Closed
colonelpanic8 opened this issue Jun 19, 2018 · 18 comments
Closed

Multiple/Duplicate icons for some applications #10

colonelpanic8 opened this issue Jun 19, 2018 · 18 comments

Comments

@colonelpanic8
Copy link
Member

I think that this likely occurs because some applications attempt to support both AppIndicator and SNI tray. This leads to issues in gtk-sni-tray because we actually handle both.

@colonelpanic8
Copy link
Member Author

In many cases one of the icons will remain even though it does nothing, not sure why this is.

@ARR8
Copy link

ARR8 commented Jun 19, 2018

For me this ties into #12, as only one of these icons will have the correct color.

@colonelpanic8
Copy link
Member Author

@ARR8 Yes, that is unsurprising. These icons are actually using a different protocol (passing icon names instead of passing raw pixel data)

@colonelpanic8
Copy link
Member Author

@ARR8 Is there an environment that you have working where things work "as you expect"?

What environment is that?

@ARR8
Copy link

ARR8 commented Jun 19, 2018

Yes - I've been using the JWM tray.

@colonelpanic8
Copy link
Member Author

@ARR8 Is that an SNI/Appindicator or xembed tray?

@ARR8
Copy link

ARR8 commented Jun 19, 2018

I'm not sure. It seems to support both options in onboard mentioned in #11.

If it helps, another program that worked, though one I do not use anymore, was lxqt-panel, which uses StatusNotifier with an xembed fallback.

@colonelpanic8
Copy link
Member Author

colonelpanic8 commented Jun 19, 2018

@ARR8 I figured out the issue here. It seems that many of these qt SNIs send out the signals that icons are updated over dbus connections that are NOT the same as the ones they actually register/host their icons on.

IMO, this is out of spec, and the issue should really be fixed in the indicators, BUT

I have pushed a fix to https://github.com/IvanMalison/status-notifier-item

There's a temporary branch
https://github.com/taffybar/gtk-sni-tray/tree/SNIQTFixes

Where you can check those fixes out on the standalone tray

@ARR8 Can you verify that the duplicate icon issue goes away with this change?

@ARR8
Copy link

ARR8 commented Jun 19, 2018

No, same issue. I've double-checked that I'm compiling correctly from the new branch.

@colonelpanic8
Copy link
Member Author

@ARR8 Can you run with

-l DEBUG

ignore the stuff that happens on startup (press enter a bunch to separate the output) and then start the application that causes duplicates?

@ARR8 And you made sure to stack install rather than stack build, right?

@colonelpanic8
Copy link
Member Author

@ARR8 Do you at least see the color fix? If the colors are not different, you definitely aren't using the new code.

@ARR8
Copy link

ARR8 commented Jun 19, 2018

Oh, I think I see the problem. I used a modified PKGBUILD rather than stack. Looking at the commits, none of the code actually changed except for build instructions, which are ignored.

Rather than installing stack and getting a whole Haskell build environment on this machine, I'll just recompile the changed dependencies. Which ones are those?

@colonelpanic8
Copy link
Member Author

status-notifier-item changed, but i havent made a release yet, because I want to make sure that everything is fixed.

@colonelpanic8
Copy link
Member Author

you'll need to install status-notifier-item from its master

@ARR8
Copy link

ARR8 commented Jun 19, 2018

Fixed for me.

@illis
Copy link

illis commented Jun 19, 2018

Just tried building with

- git: http://github.com/taffybar/gtk-sni-tray.git
  commit: ea72ad0571def77ac20e8b11d1d966a5735f91d9
  #- gtk-sni-tray-0.1.3.1
- git: https://github.com/IvanMalison/status-notifier-item
  commit: e0d1d7867e8fe593745659e3604ecdf191a2ab3f
  #- status-notifier-item-0.2.2.0

Inside the taffybar stack.yaml and still got the double icon with vlc. Colours weren't changed either - which I'm guessing means, that I missed something somewhere?

@illis
Copy link

illis commented Jun 19, 2018

Actually ignore that last remark. It's working for me :) - was building out of the wrong directory - rookie mistake, yes I know!

@colonelpanic8
Copy link
Member Author

@illis great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants