Page 1 of 1
Linux SysTray
Posted: Sun Apr 07, 2024 9:34 am
by mk-soft
After the internal systray functions were finally removed from the GTK3 system, libappindicator3-1 is now used.
Unfortunately there is no possibility to capture mouse clicks as this is not supported.
Therefore the event #PB_Event_SysTray is omitted for Linux.
This is still missing in the documentation.
Re: Linux SysTray
Posted: Fri Apr 19, 2024 8:06 pm
by Andre
Do you have a concrete suggestion, which command descriptions should be changed and how? Thanks

(btw. missing functionality on Linux is a really something for the docs, or more something Fred should look for?)
Re: Linux SysTray
Posted: Fri Apr 19, 2024 8:34 pm
by mk-soft
Andre wrote: Fri Apr 19, 2024 8:06 pm
Do you have a concrete suggestion, which command descriptions should be changed and how? Thanks

(btw. missing functionality on Linux is a really something for the docs, or more something Fred should look for?)
change to
Description
Adds an icon in the SysTray area.
(Window, MacOS)
When an event occurs on any of the SysTray icons the #PB_Event_SysTray event is sent. EventGadget() can be used to know which SysTrayIcon has been used. EventType() functions is also updated by this function.
The libappindicator3-1 does not support signals from the mouse such as "button-press-event"
Nothing can be done.
Supported signals are
Code: Select all
#APP_INDICATOR_SIGNAL_NEW_ICON = "new-icon"
#APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON = "new-attention-icon"
#APP_INDICATOR_SIGNAL_NEW_STATUS = "new-status"
#APP_INDICATOR_SIGNAL_NEW_LABEL = "new-label"
#APP_INDICATOR_SIGNAL_CONNECTION_CHANGED = "connection-changed"
#APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH = "new-icon-theme-path"
#APP_INDICATOR_SIGNAL_SCROLL_EVENT = "scroll-event"
See
Linux AppIndicator
Re: Linux SysTray
Posted: Fri Apr 19, 2024 9:03 pm
by Andre
Ok. I understand.... but so the Systray icons on Linux are 'cosmetic' only? (because of the not supported event handling)
This leads to the generally question, if the whole Systray library makes sense on Linux? Or if there should be commented something already in the library introduction? I would be interested in Fred's opinion here, before changing anything in the docs...
Re: Linux SysTray
Posted: Sat Apr 20, 2024 9:20 am
by mk-soft
Since the Gtk.StatusIcon was removed from the GTK system, an alternative had to be found. This is the libappindicator.
It works as an alternative.
Re: Linux SysTray
Posted: Fri May 17, 2024 9:05 pm
by Andre
Hm, so your suggestion for the docs improvement should be extended with a statement about "Linux.... use the libappindicator..."? Could you make a suggestion please?
Maybe Fred should take a look here too, what he wants to be written in the docs

Re: Linux SysTray
Posted: Sun May 19, 2024 3:46 pm
by benubi
The way I understand it, I suppose the installation packages in the linux install-readme must be reviewed and the PB linux lib must be internally updated to check for the new gtk + work-around (??) or it is already updated but the Linux readme isn't.
Add the package proposed by mk-soft to the list of things needed to run PB on Linux.
Re: Linux SysTray
Posted: Sun May 19, 2024 5:38 pm
by mk-soft
The instructions
Simple Install Of PureBasic have already been updated and only need to be copied back to the Linux INSTALL file.