alarm-clock-applet / alarm-clock

Alarm Clock is a fully-featured alarm clock for use with an AppIndicator implementation.
https://alarm-clock-applet.github.io
GNU General Public License v2.0
118 stars 31 forks source link

Countdown label is not showing on Mate 1.26.0 #225

Closed ronyrc closed 4 months ago

ronyrc commented 4 months ago

Using Mate Desktop Environment 1.26.0 on Linux Mint 21.3, the application is not showing the countdown label near the alarm clock icon when the option "Show countdown label" is active. This was also reported on Ubuntu Forums.

tatokis commented 4 months ago

Very unlikely there's anything I can do about it. I'll have a proper look, but I suspect it's simply a matter of whatever MATE is using to host indicators not supporting this feature. It also doesn't work on Plasma https://github.com/alarm-clock-applet/alarm-clock/issues/201#issuecomment-1335702179

tatokis commented 4 months ago

Interesting. It seems that there has been support for it since MATE panel 1.25.3 https://github.com/mate-desktop/mate-panel/commit/7e99bd8fa3b454449e4b8744ebe6b150fa0a4049

This sounds like a bug somewhere then.

tatokis commented 4 months ago

I did some more digging and I believe I figured it out.

MATE Panel 1.26 has support for SNI (the modern way of handling tray icons, which is required for the label feature) but it's disabled by default. There is a way to enable it, but it seems buggy. The icon for alarm-clock-applet completely disappeared (which made the settings completely inaccessible; I really should add a settings button to the UI). However, it did show the countdown label. But again, with no alarms enabled, it showed nothing.

Mate 1.26 on Linux Mint 21.3

If you feel like dealing with this behaviour (and possibly other bugs), you can enable SNI support in MATE panel by running

gsettings set org.mate.panel enable-sni-support true

and then logging out and back in. Just make sure you have enabled "Show countdown label" before doing this. To revert it, you can run:

gsettings reset org.mate.panel enable-sni-support

The good news, however, is that I tested it on Ubuntu 23.10 and it all worked perfectly out of the box. Ubuntu 24.04 will be out soon, so a newer version of MATE will be available in an LTS in a month or so, and hopefully Linux Mint before too long.

Ubuntu MATE 23.10