Files
lmms/cmake/linux/apprun-hooks/unity-hook.sh
Tres Finocchiaro db4523aa5d Make apprun-hooks POSIX compliant (#8121)
Remove bash-ishms, make apprun-hooks POSIX compliant per #8105
2025-11-11 13:00:10 -05:00

9 lines
260 B
Bash
Executable File

#!/bin/sh
# Workaround Unity desktop menubar integration
# - Unity's menubar relocation breaks Qt's MDI window handling in Linux
# - Unity was default in Ubuntu 11.04 - 18.04
if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]; then
export QT_X11_NO_NATIVE_MENUBAR=1
fi