13 lines
496 B
Bash
Executable File
13 lines
496 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Resident launcher for the orbit-menu GTK4 radial power/utility menu.
|
|
# Same LD_PRELOAD requirement and rationale as astal-menu-start.sh: gtk4-layer-shell
|
|
# must load before libwayland-client, which isn't guaranteed under PyGObject.
|
|
|
|
APP="${HOME}/.config/orbit-menu/main.py"
|
|
SO="$(ldconfig -p 2>/dev/null | awk '/libgtk4-layer-shell\.so/ {print $NF; exit}')"
|
|
if [[ -n "${SO:-}" ]]; then
|
|
export LD_PRELOAD="${SO}${LD_PRELOAD:+:${LD_PRELOAD}}"
|
|
fi
|
|
|
|
exec python3 "$APP" "$@"
|