summarylogtreecommitdiffstats
path: root/emacs-daemon.rc
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-daemon.rc')
-rwxr-xr-xemacs-daemon.rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs-daemon.rc b/emacs-daemon.rc
index 1a72f733daa..5c8f661a6b3 100755
--- a/emacs-daemon.rc
+++ b/emacs-daemon.rc
@@ -46,6 +46,18 @@ start() {
checkconfig || return 1
eval HOME="~${USER}"
+
+ # parsing files of session
+ ebegin "Fetching dbus address..."
+ for file in $(ls -d -1 $HOME/.dbus/session-bus/**-0)
+ do
+ echo $file
+ cat $file
+ source $file
+ done
+
+ export DBUS_SESSION_BUS_ADDRESS
+
ebegin "Starting Emacs daemon for user ${USER}"
start-stop-daemon --start \
--chdir ${HOME} \