diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-12 23:44:22 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-12 23:44:22 +0200 |
| commit | cdb7ef208bc4ad590cbb9317ea472ccac8d7e3a0 (patch) | |
| tree | 8b3973394576ea1fc1797c9120c1765edbc6fa5a | |
| parent | 88cc39a51731276d45d7a2fb79ec7956d753da35 (diff) | |
| download | dotfiles-cdb7ef208bc4ad590cbb9317ea472ccac8d7e3a0.tar.gz dotfiles-cdb7ef208bc4ad590cbb9317ea472ccac8d7e3a0.zip | |
Use dbus-launch
| -rwxr-xr-x | autostart.sh | 7 |
1 files changed, 2 insertions, 5 deletions
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 |
