-
Notifications
You must be signed in to change notification settings - Fork 58
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
Run on ubuntu 22.04 and get error: Unable to create tray type: '_AppIndicatorNativeTray' #206
Comments
my build.gradle script: dependencies {
...
implementation("com.dorkbox:SystemTray:4.4")
} my module-info.java: module com.richard.ReaderFEP {
requires javafx.controls;
requires javafx.fxml;
requires okhttp3;
requires retrofit2;
requires retrofit2.converter.gson;
requires com.github.benmanes.caffeine;
requires com.google.gson;
requires org.controlsfx.controls;
requires com.dlsc.formsfx;
requires net.synedra.validatorfx;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.ikonli.core;
requires org.kordamp.ikonli.fontawesome5;
requires org.kordamp.bootstrapfx.core;
requires org.yaml.snakeyaml;
requires java.desktop;
requires jdk.crypto.ec;
requires org.slf4j;
requires ch.qos.logback.classic;
// requires ch.qos.logback.core;
requires java.naming;
requires javafx.swing;
requires ch.qos.logback.core;
requires dorkbox.jna;
requires dorkbox.systemtray;
opens com.richard.ReaderFEP to javafx.fxml;
exports com.richard.ReaderFEP;
exports com.richard.ReaderFEP.config;
exports com.richard.ReaderFEP.server;
exports com.richard.ReaderFEP.api.type;
opens com.richard.ReaderFEP.server to javafx.fxml;
opens com.richard.ReaderFEP.api.type;
exports com.richard.ReaderFEP.trayIcon;
opens com.richard.ReaderFEP.trayIcon to javafx.fxml;
} other info maybe helpful: $ sudo apt list --installed | grep appindicator
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gnome-shell-extension-appindicator/jammy,jammy,now 42-2~fakesync1 all [installed, automatic]
libayatana-appindicator3-1/jammy,now 0.5.90-7ubuntu2 amd64 [installed] Installing libappindicator3-dev: $ sudo apt-get install libappindicator3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libayatana-appindicator3-1 : Conflicts: libappindicator3-1 Installing libappindicator1 is not working either. javafx {
version = '17.0.2'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing']
} |
Thank you for the detailed writeup! It might be related to JavaFX (which is finicky). I’ll look into this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my code is:
run by:
export GDMSESSION=ubuntu ./gradlew run
output message:
if I remove
setSysTray(stage);
,it can run successfully.The text was updated successfully, but these errors were encountered: