JDK violation and Xwayland
Answered
Hello,
I am experiencing issues with JetBrains products on my Linux system running the Wayland compositor. There are two specific problems I would like to address:
1. Despite having the proper Wayland environment variables configured and other Java applications running natively on Wayland, JetBrains products are not utilizing the Wayland protocol.
2. Although I have properly configured the XDG desktop path for Java, JetBrains products consistently create a fonts directory at ~/.java/fonts in my home folder, rather than respecting the XDG base directory specification.
I would appreciate any guidance.
Java env vars in `.zprofile`:
```
create_dir_if_not_exists "$XDG_CONFIG_HOME/java"
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS \
-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java \
-Dconfig.override_with_env_vars=true \
-Djava.net.preferIPv4Stack=true \
-Duser.timezone=UTC \
-Dquill.macro.log=false \
-XX:+PerfDisableSharedMem"
export JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS \
-Dawt.useSystemAAFontSettings=on \
-Dswing.aatext=true \
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel \
-Djdk.gtk.version=3 \
-Dsun.java2d.opengl=true \
-XX:+PerfDisableSharedMem"
export JAVA_FONTS="/usr/share/fonts/TTF"
```
Also, JetBrains Toolbox create `~/.local/share/applications` folder.
Please sign in to leave a comment.
Feel free to leave additional comments there.