Skip to content

Instantly share code, notes, and snippets.

@probonopd
Last active November 1, 2025 15:51
Show Gist options
  • Save probonopd/03609e7016f5b7a5ef4afe84fcb71456 to your computer and use it in GitHub Desktop.
Save probonopd/03609e7016f5b7a5ef4afe84fcb71456 to your computer and use it in GitHub Desktop.
#!/bin/sh
. /System/Library/Makefiles/GNUstep.sh
# Launch window manager if it is available.
if which uroswm >/dev/null 2>&1; then
(uroswm &) && sleep 2
fi
# Launch Menu and a D-Bus session if none is already there.
# Only do this if Menu is on the $PATH; otherwise we don't require D-Bus.
# NOTE: On some systems, a D-Bus session may already have been started by other parts
# of the distribution by the time this script is running.
if which Menu >/dev/null 2>&1; then
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ] ; then
export $(dbus-launch)
fi
Menu &
sleep 2
fi
exec GWorkspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment