Resolving SMART Desktop GUI Issues on Ubuntu

Running SMART Desktop(Version 7.5.6.linux64.01042023) GNU/Linux can be unreliable which multiple issue related to rendering making the application unusable.

Work around

On Ubuntu 20.04 LTS, I found that the behavior of smart desktop applications can be controlled by supplying predefined variables to the Java runtime in /etc/profile.d/jre.sh.

# /etc/profile.d/jre.sh 

export JDK_JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
export JDK_JAVA_OPTIONS='-Djdk.gtk.version={2,2.2,3}'
export _JAVA_OPTIONS='-Dsun.java2d.opengl=true'

Posting this here for documentation purposes.

Java Version: java version “23.0.2” 2025-01-21
Java™ SE Runtime Environment (build 23.0.2+7-58)
Java HotSpot™ 64-Bit Server VM (build 23.0.2+7-58, mixed mode, sharing)

2 Likes