Linux SysTray

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

User avatar
mk-soft
Always Here
Always Here
Posts: 6239
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Linux SysTray

Post 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.
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
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Linux SysTray

Post 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?)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
mk-soft
Always Here
Always Here
Posts: 6239
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Linux SysTray

Post 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
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
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Linux SysTray

Post 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...
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
mk-soft
Always Here
Always Here
Posts: 6239
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Linux SysTray

Post 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.
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
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Linux SysTray

Post 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 8)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
benubi
Enthusiast
Enthusiast
Posts: 219
Joined: Tue Mar 29, 2005 4:01 pm

Re: Linux SysTray

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6239
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Linux SysTray

Post 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.
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
Post Reply