#!/bin/sh

# Fix an issue with dropdown menu in Wayland that prevents
# to open or select any items with the mouse cursor.
if [ -n "$WAYLAND_DISPLAY" ]; then
    export _JAVA_AWT_WM_NONREPARENTING=1
fi

export FREEPLANE_JAVA_HOME=%%JAVA_HOME%%

exec %%DATADIR%%/freeplane.sh "$@"
