Skip to content

Commit

Permalink
Set the default Chrome executable on Windows
Browse files Browse the repository at this point in the history
* indium-chrome.el (indium-chrome--default-executable): Handle windows systems.
  • Loading branch information
NicolasPetton committed Jul 25, 2018
1 parent 4df8a1a commit 0002f9e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions indium-chrome.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@

(defun indium-chrome--default-executable ()
"Return a default executable based on the OS."
(if (string-equal system-type "darwin")
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
"chromium"))
(cond ((string-equal system-type "darwin")
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
((string-equal system-type "windows-nt")
"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe")
(t "chromium")))

(defcustom indium-chrome-executable
(indium-chrome--default-executable)
Expand Down

0 comments on commit 0002f9e

Please sign in to comment.