Skip to content

Commit

Permalink
Honor XDG_RUNTIME_DIR
Browse files Browse the repository at this point in the history
Thanks to Alain Kalker <a.c.kalker@gmail.com> for this change.
  • Loading branch information
mz-pdm committed Oct 25, 2014
1 parent 447a21e commit 3d72981
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
User-visible changes to speechd-el:

* Changes in speechd-el 2.8

** XDG_RUNTIME_DIR environment variable is honored now.

Thanks to Alain Kalker for this change.


* Changes in speechd-el 2.7

** Minor bug fixes.
Expand Down
4 changes: 3 additions & 1 deletion speechd.el
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ current voice."
:remote (or socket-name
(or (getenv "SPEECHD_SOCK")
(expand-file-name
"~/.speech-dispatcher/speechd.sock")))))
(let ((runtime-dir (getenv "XDG_RUNTIME_DIR")))
(concat (if runtime-dir (concat runtime-dir "/") "~/.")
"speech-dispatcher/speechd.sock")))))))
((eq method 'inet-socket)
(open-network-stream "speechd" nil host port))
(t (error "Invalid communication method: `%s'" method)))))
Expand Down

0 comments on commit 3d72981

Please sign in to comment.