mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
Added Dbus
This commit is contained in:
parent
f17923904d
commit
7db92bcb4c
@ -8,6 +8,11 @@ set -o pipefail # capture error from pipes
|
||||
# $USER
|
||||
[[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami)
|
||||
|
||||
#DBUS
|
||||
# Add the DBUS_SESSION_BUS_ADDRESS environment variable
|
||||
dbus_address=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ | cut -d= -f2-)
|
||||
export DBUS_SESSION_BUS_ADDRESS=$dbus_address
|
||||
|
||||
# $UID
|
||||
# logged_in_uid=$(id -u "${logged_in_user}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user