8 lines
406 B
Shell
Executable file
8 lines
406 B
Shell
Executable file
#!/bin/bash
|
|
# Runs inside hidden.sh's dbus-run-session: saves the bus address, starts the fake tray host if asked, then Medlar.
|
|
d=$(dirname "$(realpath "$0")")
|
|
echo "$DBUS_SESSION_BUS_ADDRESS" > "$S047_OUT/bus"
|
|
if [ -n "${FAKE_TRAY:-}" ]; then python3 "$d/fake_watcher.py" "$S047_OUT/item" & sleep 1; fi
|
|
date +%s > "$S047_OUT/t0"
|
|
[ -n "${S047_SECOND:-}" ] && (sleep 5; "$S047_BIN") &
|
|
exec "$S047_BIN" "$@"
|