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.
Linux SysTray
Moderator: Documentation Editors
Linux SysTray
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Linux SysTray
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?)

(btw. missing functionality on Linux is a really something for the docs, or more something Fred should look for?)
Re: Linux SysTray
change toAndre 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?)
The libappindicator3-1 does not support signals from the mouse such as "button-press-event"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.
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"
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Linux SysTray
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...
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
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.
It works as an alternative.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Linux SysTray
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
Maybe Fred should take a look here too, what he wants to be written in the docs

Re: Linux SysTray
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.
Add the package proposed by mk-soft to the list of things needed to run PB on Linux.
Re: Linux SysTray
The instructions Simple Install Of PureBasic have already been updated and only need to be copied back to the Linux INSTALL file.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive