If you run Ghidra on a high DPI screen, you will probably find the GUI to be scaled down so small to be almost of no use.
There is a setting that you can adjust to scale the Ghidra GUI:
in $GHIDRA_ROOT/support is a file named launch.properties. In this launch.properties file is the following configuration key:
VMARGS_LINUX=-Dsun.java2d.uiScale=1
Change this line to:
VMARGS_LINUX=-Dsun.java2d.uiScale=2
Then launch ghidra and you should be good to go!
Not familiar with Snap, but I think it should be possible to run
$GHIDRA_ROOT/support/launch.sh bg jdk Ghidra "" "-Dsun.java2d.uiScale=2" ghidra.GhidraRundirectly. This works for me on Arch Linux.The command is taken from
$GHIDRA_ROOT/ghidraRunwhich is just a wrapper forlaunch.sh.launch.shaccepts extra vmargs via CLI butghidraRundoesn't expose this to the user.