Files
meta-diya/recipes-bsp/diya-session-manager/files/diya-session-launch
Dany LE ab8921d052 Major update:
- Switch to Sytemd
- Add development tools: adroid tool, usbgadget support
- Rework on recovery Image
2025-11-26 17:55:25 +01:00

26 lines
405 B
Bash
Executable File

#! /bin/sh
handle()
{
echo "SIGINT detected. continue."
}
# start dbus session and get env:
#
# DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus-...
# export DBUS_SESSION_BUS_ADDRESS;
# DBUS_SESSION_BUS_PID=3598;
# shellcheck disable=SC1091
. /etc/profile
eval "$(dbus-launch --auto-syntax)"
# trap the sigint
trap 'handle' INT
"$@"
# stop the
kill -9 "$DBUS_SESSION_BUS_PID"
echo "Session closed"