summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-10-13 09:44:38 +0000
committerdakkar <dakkar@thenautilus.net>2023-10-13 09:44:38 +0000
commitc50b414945b56c1323b99d3992cbd558f3681aa5 (patch)
tree9eeedb914389f55bd9d97336fcb826631695f9c2
parentmedia player fixes (diff)
downloaddotfiles-c50b414945b56c1323b99d3992cbd558f3681aa5.tar.gz
dotfiles-c50b414945b56c1323b99d3992cbd558f3681aa5.tar.bz2
dotfiles-c50b414945b56c1323b99d3992cbd558f3681aa5.zip
more sharing of dbus
-rw-r--r--.bash_profile4
-rwxr-xr-x.xinitrc3
2 files changed, 6 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile
index 4b87c78..e8b688e 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -56,3 +56,7 @@ if [[ -z "$DISPLAY" ]]; then
exec startx >~/xsession-errors 2>&1
fi
+if [[ -z "$DBUS_SESSION_BUS_ADDRESS" && -e .dbus.env ]]; then
+ source .dbus.env
+fi
+
diff --git a/.xinitrc b/.xinitrc
index 76a7f60..3502a1e 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,7 +1,8 @@
-#!/bin/sh
+#!/bin/bash
if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then
eval $(dbus-launch --exit-with-x11 --sh-syntax)
+ declare -p DBUS_SESSION_BUS_ADDRESS > .dbus.env
fi
cd