Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting if TopIcons-Plus is active #134

Closed
davidbannon opened this issue Oct 15, 2019 · 3 comments
Closed

Detecting if TopIcons-Plus is active #134

davidbannon opened this issue Oct 15, 2019 · 3 comments

Comments

@davidbannon
Copy link

Anyone aware of a way to detect if Topicons-plus is active, from another application ?

I make a thing called tomboy-ng and we depend on TopIcons-plus to display our System Tray Icon on Gnome desktops. But if TopIcons-plus is not installed and 'on', the end user does not have any ability to interact with the app. So, I'd like to test to see if LibAppIndicator3 is available (easy) and TopIcons-plus (unknown).
Thoughts anyone ?
Davo

@jubalh
Copy link

jubalh commented Oct 15, 2019

You will probably need to check in all available config files. Like ~/.config/gtk-3.0/settings.ini.
Maybe also dconf.

Why do you depend on Topicons-Plus for your application to work? You use one of it's icons? You could check the license and include that specific icon in your application.

@parkerlreed
Copy link

I assume they have an application that needs the system tray.

@davidbannon
Copy link
Author

davidbannon commented Oct 16, 2019

Yes indeed. App is built using FPC and Lazarus (ie Pascal). And right now, for System Tray Icons, all that can do is the old System Tray model or the Unity inspired LibAppIndicator3. Works fine with TopIconsPlus installed (and many thanks for that !) but of course fails silently if its not there.

Thanks, I will look into the ideas mentioned and report back.....

Yep, dconf is the answer -
dconf /org/gnome/shell/
.... 'TopIcons@phocean.net' ....

Thanks indeed !
Davo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants