Hey Davo,
Have you read the wiki page on the topic ? https://wiki.freepascal.org/How_to_use_a_TrayIcon
THANKS, this entry is just what I wanted to try and find out...
I think I should've searched a bit more before just posting here
Which desktop are you referring to ? Just a guess, Gnome ?
As you can see from my sig, I'm on Ubuntu 21.04 Dark Theme, so yeah GNOME
I have noted an issue in the current beta of U21.10 with Gnome and I have reported it on Launchpad. Previous Ubuntu's all worked fine, they all have a patch that Ubuntu use to fix what Gnome does. But the beta appears to not have that patch but still claims it can do SysTray. Sigh....
SysTray is the one that came before
AppIndicator, right?
I really need to learn how to verify which one of these two are in play!!
Do please try you app setting an env variable (as described in the wiki page) like so
LAZUSEAPPIND=YES myapp <enter>
I've done a VERY quick preliminary test with an app I think has a tray icon and it didn't show.
Running it from the console, I got this:
$ LAZUSEAPPIND=YES ./Noso
Gtk-Message: 08:33:58.982: Failed to load module "overlay-scrollbar"
APPIND Debug : Will try to force AppIndicator3
APPIND Debug : AppIndicator3 has loaded True
The app messes with the
AppIndicator stuff on the background, but I still ain't getting an icon...
I guess I need to make sure my Ubuntu has all the conditions met that are listed at the Wiki entry.
I also need to make sure that the app is doing it right.
I also want to do some tests with
2.0.12 and
laz-main(previous trunk).
SOOOOO, this means that I need to start a clean new project and then tick all the verification items on my list.
Davo, my man, many thanks for giving me a clear path on how to get this clear in my head
Cheers,
Gus
P.S.: I guess I'll mark this one as SOLVED when I can get the Icon back on. And maybe write my process in getting it there.