-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Questions] How to check if tray icon is supported and all the libs are ok? #70
Comments
Thank you.
appindicator-gtk3-java/src/main/java/org/purejava/appindicator/AppIndicator.java Line 310 in 6d43f60
The bindings log, whether one of the appindicator shared libs could be loaded. An exception should not occur, unless something is very wrong like the bindings were not working on Fedora before.
That's fine. |
Just last question if possible. I hope to not bother you. I'm considering integrating this lib into my app but I would like to understand more what there is behind the lib :) I am reading your blog here where did you get I can't find that header on my system. Did you downloaded the library from somewhere? Thank you for your time and your work. |
This is the header file for the An according header file is probably not installed on your system, as these are normally only needed when you compile source code on your own. Well, on Arch Linux they are, but that depends. On Ubuntu, header files are contained in Developing an app that is using these bindings does not require the header files. I mentioned the headers in my blog as the post describes on how to use
I hope so. 😄 It is supposed to work on any Linux box, where one of the
Not that many. |
ok it's all clear now, thank you. |
thanks for the answer, I appreciate it. from your link I see this:
if this is true, I should be able to achieve what I want using a middle mouse button, fast access an item on the tray menu. but I don't know if it's true or not :D |
apart this I have a blocking issue now.
any idea? EDIT: adding --enable-native-access=ALL-UNNAMED |
another issue with this is that we cannot reference an image for the tray icon from java. but when you create the jar the image is inside the jar file and then it doesn't work with the binding that requires an absolute path to the image. is there a fix for this? thanks |
It's not the binding, that requires the absolute path for the icon, but the underlying appindicator library. You only have two options here: the absolute path or you reference the icon by its name like done in the wiki example. "indicator-message" is an icon, that is installed on the system as part of one of the icon-themes and has a filename like indicator-message.svg or something like that. We solved that for an application that is distributed as an AppImage by reading an environment variable that is provided by the running AppImage and points to the absolute path, where the temporary files of the running AppImage are located on your system so you can create the absolute path for the icon of "/" + "env var" + "icon file name". I don't know, whether there is something like this for an app distributed as a jar file. |
ok thanks for the patience in answering all my questions, I really, really appreciate it. |
@purejava I hope to not bother you but isn't it better to avoid creating the static initializers and simply pass -l to jextract like this?
I think that this way is better and you can avoid that initializers.
that will do the trick for you |
In theory yes, but the |
ook thanks for the answer, again. from libappindicator documentation it seems that app_indicator_set_secondary_activate_target should do the trick of executing a callback once the middle mouse button is clicked on the tray. I tried this
but it doesn't work. |
I don't see, what's wrong with your code. Maybe the And watch the arena scope. In most cases, |
it doesn't work here, if I'll found a solution I'll write here. |
What do you mean? The different color or spacing or both? I've no idea. From my point of view, running it as a Flatpak app should make no difference, als long as you use the Flatpak libappindicator shared-module. |
I mean both
I'm using their shared-module and this is the result. |
probably we need to set the right GTK theme/appearance in flatpak, but how to do it ? |
Gtk theming is independent from Flatpak. Use the not I am closing this now as this is off topic. |
Hi, congratulations for your wonderful lib. I have some questions if possible...
How can I check if the tray icon is fully supported without getting an exception?
I'm sorry if I opened a feature request but the wiki does not answers this question.
Thanks for your great work!
The text was updated successfully, but these errors were encountered: