Skip to content
Snippets Groups Projects
Unverified Commit 4b06fdd0 authored by sicelo's avatar sicelo :speech_balloon:
Browse files

tinydm-run-session.sh: support starting dbus session (MR 15)

If a tinydm session is unable to start a dbus session automatically, e.g.
i3wm, support starting one if configured in the profile. This is useful to run
programs that require a dbus session bus, e.g. feedbackd under such desktop
environments.

It can be enabled by creating a TINYDM_START_DBUS_SESSION environment variable
in $HOME/.profile, /etc/profile, or, better still, a file under
/etc/tinydm.d/env-x11.d/ . The value must be set to "true".

Reference: https://wiki.gentoo.org/wiki/D-Bus#The_session_bus
parent 8c2c15cd
No related branches found
No related tags found
1 merge request!15tinydm-run-session.sh: support starting dbus session
Pipeline #143729 passed
......@@ -91,6 +91,16 @@ run_session() {
export XDG_CURRENT_DESKTOP="$desktop_names"
fi
# Check if profile or session profile requests tinydm to start a dbus
# session. This is indicated by exporting the value "true" in a
# TINYDM_START_DBUS_SESSION environment variable in either profile
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] &&
[ "$TINYDM_START_DBUS_SESSION" = "true" ] &&
[ "$(command -v dbus-launch)" ]; then
cmd=$(command -v "$cmd")
cmd="$(command -v dbus-launch) --exit-with-x11 $cmd"
fi
echo "--- tinydm ---"
echo "Date: $(date)"
echo "Session: $resolved"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment