[Linux/Ubuntu] Application Indicators

Share your advanced PureBasic knowledge/code with the community.
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

[Linux/Ubuntu] Application Indicators

Post by remi_meier »

Next release of Ubuntu, there will be no "Systray"
anymore. So if you want to be present up there
you may want to look at application indicators.

More info about AppIndicators:
https://wiki.ubuntu.com/DesktopExperien ... Indicators

Bindings + Example:
http://remi.secretly.de/downloads/appindicator.zip
Athlon64 3700+, 1024MB Ram, Radeon X1600
User avatar
idle
Always Here
Always Here
Posts: 5895
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: [Linux/Ubuntu] Application Indicators

Post by idle »

thanks
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
Programie
User
User
Posts: 30
Joined: Thu Aug 09, 2007 11:26 am
Location: Gernsbach (Germany)
Contact:

Re: [Linux/Ubuntu] Application Indicators

Post by Programie »

Sorry for reopening this very old thread after 7 years. But I was searching for some alternative for the tray icons in PB applications since the PB SysTray does not work anymore with Ubuntu 18.10 and could only find this post.

So, I just wanted to try out adding tray icons using the AppIndicator (which is the preferred way for status icons in Gnome 3) and your provided bindings still work on Ubuntu 18.04 with Gnome 3.30.1 after some minor tweaks.

But first, the download link to the zip file does not work anymore. Fortunately RSBasic has a backup of lots of files linked in the forums (see Backups on his website).

After that I just had to install "libappindicator3-1" (if not already installed) and modify the ImportC path to /usr/lib/x86_64-linux-gnu/libappindicator3.so.1 (on x64 systems). For x86 the path should be /usr/lib/libappindicator3.so.1.

And that's it, now it's working! :wink:

Thanks for the bindings and example how to use them!

btw: Are there already any plans for adding AppIndicator support in PB without having to fiddle with the library binding and it's callbacks?
ImageImageImageImage
Post Reply