Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions browser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
;;;
(defparameter *browser-commands*
(list (cons :chrome #+windows "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
#+macos "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
#+(or macos darwin) "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
#+linux "chrome") ;See https://unix.stackexchange.com/questions/436835/universal-path-for-chrome-on-nix-systems
(cons :firefox #+windows "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"
#+macos "/Applications/Firefox.app/Contents/MacOS/firefox"
#+(or macos darwin) "/Applications/Firefox.app/Contents/MacOS/firefox"
#+linux "firefox")
(cons :default #+windows "explorer"
#+(or macos darwin) "open"
Expand Down
2 changes: 1 addition & 1 deletion plot.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(let ((plot-file (namestring (truename filespec))))
#+windows (setf plot-file (concatenate 'string "file:///" plot-file))
(uiop:launch-program `(,(alexandria:assoc-value plot:*browser-commands* browser)
,@(case browser
,(case browser
(:chrome (if (assoc "app" browser-options :test 'string=)
(setf (cdr (assoc "app" browser-options :test 'string=)) plot-file))
(encode-chrome-options browser-options))
Expand Down