Recent

Author Topic: GTK3 is now the default widgetset on Linux  (Read 3089 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: GTK3 is now the default widgetset on Linux
« Reply #30 on: July 17, 2026, 07:26:00 am »
Hi, i'm working in Ubuntu with Cinnamon.

OK. I have tested the current Linux Mint Cinnamon, Ubuntu (26.04) in both KDE and Gnome and found the Systray Icon works as expected. 

I can, bandwidth permitting, probably build a Cinnamon version of either 26.04 or 24.04 Ubuntu and test that but would rather not start that unless you tell me which one you are using (and why Ubuntu if you want Cinnamon ?).

And perhaps spell out for me, exactly what you want to happen please ? You might well be exceeding the "agreed limits".

I note that Ubuntu 26.04 gives an error message -
Code: Pascal  [Select][+][-]
  1. (tomboy-ng:5242): libayatana-appindicator-WARNING **: 14:14:06.206: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code
But we cannot swap over to the new one because at least half the systems out there do not have libayatana-appindicator-glib in their repositories. Time ...

Edit : I should mention, for the record, that Ubuntu (and therefore its derivitive, Mint) generally do have the libayatana-appindicator* pre installed. In the case of Gnome, the required plugin is also preinstalled.

« Last Edit: July 17, 2026, 09:24:45 am by dbannon »
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 is now the default widgetset on Linux
« Reply #31 on: July 17, 2026, 09:49:49 am »
Maybe try load libayatana-appindicator-glib first and then fallback to the old one ?

bonmario

  • Sr. Member
  • ****
  • Posts: 349
Re: GTK3 is now the default widgetset on Linux
« Reply #32 on: July 17, 2026, 12:50:59 pm »
Hi, i'm working in Ubuntu with Cinnamon.

OK. I have tested the current Linux Mint Cinnamon, Ubuntu (26.04) in both KDE and Gnome and found the Systray Icon works as expected. 

I can, bandwidth permitting, probably build a Cinnamon version of either 26.04 or 24.04 Ubuntu and test that but would rather not start that unless you tell me which one you are using (and why Ubuntu if you want Cinnamon ?).

And perhaps spell out for me, exactly what you want to happen please ? You might well be exceeding the "agreed limits".

I note that Ubuntu 26.04 gives an error message -
Code: Pascal  [Select][+][-]
  1. (tomboy-ng:5242): libayatana-appindicator-WARNING **: 14:14:06.206: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code
But we cannot swap over to the new one because at least half the systems out there do not have libayatana-appindicator-glib in their repositories. Time ...

Edit : I should mention, for the record, that Ubuntu (and therefore its derivitive, Mint) generally do have the libayatana-appindicator* pre installed. In the case of Gnome, the required plugin is also preinstalled.


Ok, thanks.
I'm using Ubuntu 24.04.4 LTS.
I', using Cinnamon, because with Gnome i have meny problem.

The problem is that when I click on the tray icon, whether I right-click or left-click, it always does the same thing, which is what it's supposed to do when I right-click.
I have preinstalled  libayatana-appindicator*

Thanks, Mario

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: GTK3 is now the default widgetset on Linux
« Reply #33 on: July 18, 2026, 07:50:21 am »
[Ok, thanks.
I'm using Ubuntu 24.04.4 LTS. I'm, using Cinnamon, because with Gnome i have meny problem.
Yes, gnome is not very friendly.

Quote
The problem is that when I click on the tray icon, whether I right-click or left-click, it always does the same thing, which is what it's supposed to do when I right-click.
I think, but will need to check, that 'some' desktops only allow one menu to be attached to the trayicon. You might be able detect the click but if you want it to popup a menu, it may not be where the user clicked. And users hate that.

Again, from memory, in my app, I associate the same menu with both left and right clicks. Thats to ensure the least surprises for end user. On KDE for example, Wayland with Qt5 and Qt6, the left click does not bring up the menu but the right click overload does. So, when user clicks left, I send a notification, "Please use right click". No sign of that problem using gtk3 (yippy!).

On some desktops, the desktop grabs a right click for its own use.  So, the rule is, keep it simple, one menu is all you should hope for.

Also, my recent tests indicate that gtk3 on Gnome requires libayatana-appindicator3-1 and gnome-shell-extension-appindicator, pretty much the same as gtk2. You are fortunate in using Ubuntu, they add those to their base install of Gnome. If you will be distributing your app to other people, remember if they are using Debian Gnome or Fedora Gnome (for example) they must install those things. And log off and back in and enable the extension. Its a right royal pain.

Davo

Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 19625
  • Glad to be alive.
Re: GTK3 is now the default widgetset on Linux
« Reply #34 on: July 18, 2026, 10:22:34 am »
Yes. I did not even notice: trixie does:
Code: Bash  [Select][+][-]
  1. Installing:
  2.   libayatana-appindicator3-1
  3.  
  4. Installing dependencies:
  5.   libayatana-ido3-0.4-0  libayatana-indicator3-7  libdbusmenu-glib4  libdbusmenu-gtk3-4
Have been using Ubuntu too much...
Keeping things synced is a real headache. The latter two dependencies are a dead giveaway...
They may solve the issue on their own.
« Last Edit: July 18, 2026, 10:29:14 am by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: GTK3 is now the default widgetset on Linux
« Reply #35 on: July 19, 2026, 03:25:30 am »
To make it worse, the ayatana people are changing its name, again !  They last did this a week before release of Bullseye, leaving all those apps (including mine) informally dependent on a non existing library.

This time, at least, its a bit more intuitive,  libayatana-appindicator is deprecated, instead we should use libayatana-appindicator-glib. While several OS already give you a warning, only Arch seems to actually have the new library. I guess we have to hope they leave us with a long overlap. 

Not good.

Davo
« Last Edit: July 19, 2026, 03:35:48 am by dbannon »
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018