Skip to content

Commit

Permalink
Fix #199
Browse files Browse the repository at this point in the history
* indium-chrome.el (indium-chrome--command): Reuse the Chrome profile directory
  between sessions.
  • Loading branch information
NicolasPetton committed Mar 2, 2019
1 parent 8872448 commit cf759ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion indium-chrome.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"When non-nil, each invocation of the browser uses a new temporary profile."
:type '(boolean))

(defvar indium-chrome-data-dir (make-temp-file nil t)
"Chrome profile directory used by Indium.")

(defun indium-launch-chrome (conf)
"Start chrome/chromium with remote debugging enabled based on CONF settings."
(let-alist conf
Expand All @@ -76,7 +79,7 @@
(list (indium-chrome--find-executable)
(format "--remote-debugging-port=%s" port)
(if indium-chrome-use-temporary-profile
(format "--user-data-dir=%s" (make-temp-file nil t))
(format "--user-data-dir=%s" indium-chrome-data-dir)
"")
url))

Expand Down

0 comments on commit cf759ec

Please sign in to comment.