Skip to content

Commit

Permalink
Added Dbus
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Feb 29, 2024
1 parent f179239 commit 7db92bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 7db92bc

Please sign in to comment.