diff options
author | Manoel Vilela | 2018-02-17 04:00:42 -0300 |
---|---|---|
committer | Manoel Vilela | 2018-02-17 04:00:42 -0300 |
commit | 5d21cc1250009d21ad624b9f8203cf7ac78237c6 (patch) | |
tree | 89d7e18607b8ceeb5fb93c41cc44f9760fdb81ee /emacs-daemon.rc | |
parent | e9711222ecb189e0d28aa2ebc59dce4064fbd7a5 (diff) | |
download | aur-emacs-openrc.tar.gz |
Add support to dbus on emacs-daemon
This should expor variables about dbus in the mean time
of start the service. This should not work as service when is
started before the X server, however.
I use this shit to get notifications working on erc-mode.
Diffstat (limited to 'emacs-daemon.rc')
-rwxr-xr-x | emacs-daemon.rc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs-daemon.rc b/emacs-daemon.rc index 1a72f733daa3..5c8f661a6b31 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} \ |