-
Notifications
You must be signed in to change notification settings - Fork 62
Number of unread emails not shown (appind branch) #143
Comments
Hi, this is a known issue. I suggest you turn to the appindicator community and ask them to add PixBuf support. |
That issue has 3 years ... to not have such important feature looks like libindicator is dead. :-( I think KDE has some alternative systray icon implementation, utilized via dbus. Could that be supported? |
I think this is what I'm seeing as well. Latest update messed up the read/unread indication in the icon. Neither "unread messages" or "new messages" counts works. I also can't seem to change included accounts or folders. |
I tried to express my position. Basically, I can't provide KDE-specific support. Patches welcome though. What can be done to overcome AppIndicator limitations is:
|
Yeah sounds like I'm seeing #139. Thanks. |
Could this be used as a replacement for libappindicator? https://github.com/jjk-jacky/statusnotifier |
@Rush I'm afraid libstatusnotifier is not widely available. And I'd rather not provide the lib (for multiple architectures) within FireTray. |
I started work on my own little library that will be basically either single .h file on a MIT license or a small library that does dlopen on libdbus. Do you think it's viable? I have researched talking to dbus over libdbus during Christmas time and I have a small prototype already. It could expose an API that you can dlopen as well so your users would only need to install my library and FireTray would dlopen it. Can you bind to C functions that report events over call backs or do you prefer a polling approach? I will have to forward you events like "Activate" or "ContextMenu". |
@Rush I don't know. We could give it a try. But I'm a little concerned about the maintainability of all this, compared to libappindicator. But, again, if it fixes libappindicator shortcomings under KDE and works well under Unity, then it could be an option. Why not just contribute to libappindicator for ensuring it works well under KDE ? |
I think it's easier. I didn't wanna fight with libappindicator since it appears dead and I don't fancy how it's written. It's not even easy to open an issue there .. compared to how responsive you sir are! My intuition is that my changes would be rejected. I could be wrong of course but in any case I wanted to learn some DBUS anyway. I'll try to post my proof of concept code this evening. (edit: seems not yet working on Ubuntu yet, will try to debug why) |
@foudfou https://github.com/encharm/libsystemtray Little delay. Please see examples. Api is in the .h file. You can also set icon by pixel data. All features of KDE system tray should be supported. Sadly I am not sure why these icons don't show up on my Ubuntu. Can you test for yourself? |
@Rush you had mentioned C, not C++. The problem is that js-ctypes (the thing that makes it possible to call C code from JS) doesn't work well with C++. |
@foudfou: there is a C API.See https://github.com/encharm/libsystemtray/blob/master/tests/iconbyname.c |
@Rush oh right, I just looked at the github analysis and missed it. Nice work BTW!
and 2708073 for a ctypes binding. I won't be able to test for icons under Ubuntu before a week at least. |
Hi foudfou, Here's how syncthing-gtk handled it if you're interested : And you have a nice comparison table about the support of StatusIcons on DEs here : |
I come here by link in lp#812067 bug report. I faced such problem when trying to port some gnome/kde accessibility system tray icons to Ubuntu Unity. Issue here https://askubuntu.com/questions/402315/ . The solution I came with is to store the dynamically generated icon in Used here, https://github.com/sneetsher/indicator-xkbmod . Anyway, even this it's just a workaround. |
Hi @sneetsher, nice work! I'd prefer to try embedding @Rush's lib though, as it would be a more radical solution. |
For unread count issue on Plasma 5 I did a brutal patch - https://github.com/michal-karpinski/FireTray It's not nice but it seems to do the job. |
@michal-karpinski I think your patch is interesting. How about creating the file from the pixbuf ? See gdk_pixbuf_save. The code for creating the pixbuf should be factored from |
That would definitely be a cleaner way, however, as I'am not really familiar with these libraries and I was afraid of caching issues etc... I guess that in the end, there should be a possibility of using a pixbuf directly. In the mean time, we can use this simple patch as a workaround. Nevertheless, if I come across any problems with my solution, I will give your suggestion a try. |
Basically the icon stays as it is shown on the image:
http://x.rushbase.net/02dc090a4ba6f0c44e83976687c00da33d24ad4f/screenshot.png
The text was updated successfully, but these errors were encountered: