From cdb7ef208bc4ad590cbb9317ea472ccac8d7e3a0 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 12 Aug 2023 23:44:22 +0200 Subject: Use dbus-launch --- autostart.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'autostart.sh') diff --git a/autostart.sh b/autostart.sh index f15deda..dee4dc8 100755 --- a/autostart.sh +++ b/autostart.sh @@ -1,7 +1,4 @@ #!/bin/bash -# Set the environment variable -export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ | tr '\0' '\n' | cut -d= -f2-) - -# Load custom dconf settings -/usr/bin/dconf load / <$HOME/.config/dconf-custom/settings.dconf +# Launch the dconf command with dbus-launch and load custom dconf settings +dbus-launch /usr/bin/dconf load / <"$HOME"/.config/dconf-custom/settings.dconf -- cgit v1.2.3