Wayland
configurationserverwaylandwayland

Desktop streaming (e.g. via bbb or jitsi) #

pulseaudio did not work for me and had to be replaced with pipewire, because it brings these systemd user services to enable desktop streaming:

  pipewire-media-session.service
  pipewire-pulse.service
  pipewire.service

Graphical Java applications #

Do not start and say: Error Can't connect to X11 window server using 'wayland-1' #

Run it under Xwayland, e.g. with env DISPLAY=:0 java program.java

Window appears, but is blank #

If the window is empty or if it only shows its controls after resizing, try setting the environment variable: _JAVA_AWT_WM_NONREPARENTING=1

Fonts are ugly #

Try adding -Dawt.useSystemAAFontSettings=on to _JAVA_OPTIONS

Integration into GTK/Gnome look #

Add -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel to _JAVA_OPTIONS

xfce4 components are crashing? #

Try starting them with env GDK_BACKEND=x11, e.g GDK_BACKEND=x11 xfce4-settings-manager

set cursor theme #

If it is a native Xorg application, it has to be configured like one:

GTK gsettings set org.gnome.desktop.interface cursor-theme "Hackneyed"

# ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-cursor-theme-name=Hackneyed
gtk-cursor-theme-size=24
# ~/.config/gtk-4.0/settings.ini
[Settings]
gtk-cursor-theme-name=Hackneyed
gtk-cursor-theme-size=24
top