File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 102102 ([wsp]
103103 (try
104104 (let [wsp (or wsp {})
105- ignore-dead-server? (:emacs.open/ignore-dead-server? wsp false )
106105 wsp-name
107106 (or (some wsp [:emacs.open/workspace
108107 :workspace/title :org/name :clawe.defs/name ])
121120 ; ; TODO consider a 'daily file' pattern here, even searching to find one
122121 (str " (find-file \" " initial-file " \" ) " " " ))
123122 (when elisp-hook elisp-hook)
124- " )" )]
123+ " )" )
124+ ignore-dead-server? (:emacs.open/ignore-dead-server? wsp false )
125+ wayland? (:emacs.open/wayland? wsp true ) ; ; defaulting to wayland!
126+ display-str (when-not wayland? " --display=:0" )]
125127
126128 (when (and (not (emacs-server-running? )) (not ignore-dead-server?))
127129 (notify {:notify/subject " Initializing Emacs Server, initializing."
132134
133135 (-> ($ emacsclient --no-wait --create-frame
134136 -F ~(str " ((name . \" " wsp-name " \" ))" )
135- -- display=:0
137+ ~ display-str
136138 --eval ~eval-str)
137139 check))
138140 ; ; TODO proper clawe error log
You can’t perform that action at this time.
0 commit comments