#!/bin/sh
# SPDX-License-Identifier: MIT
# Copyright (C) 2026 pake <pake@fedora.tw> - https://pomelo-os.org
# desk-spawn COMMAND-LINE : started by pomelo-compositor (login mode, docs/LOGIN.md) for key bindings (Super+R, Super+E, ...) AFTER it
# dropped root to the logged-in user.  Loads the environment of the user's session (written by desk-user-session) and runs the
# command line with sh, like a program the user's own panel would start.
[ -r "$XDG_RUNTIME_DIR/session.env" ] && . "$XDG_RUNTIME_DIR/session.env"
exec /bin/sh -c "$1"
