From 7946bba0f487ffccafff07874df34894bdd38639 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 14 Feb 2018 23:15:24 +0300 Subject: Find executable for a terminal * terminal-here.el (terminal-here-default-terminal-command): Find executable for terminal. --- test/terminal-here-test.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/terminal-here-test.el b/test/terminal-here-test.el index 849f18d..02c2864 100644 --- a/test/terminal-here-test.el +++ b/test/terminal-here-test.el @@ -16,7 +16,8 @@ (ert-deftest linux-default-command () (with-terminal-here-mocks - (mock (start-process "x-terminal-emulator" * "x-terminal-emulator")) + (mock (start-process (terminal-here-find-terminal) * + (terminal-here-find-terminal))) (let ((system-type 'gnu/linux)) (custom-reevaluate-setting 'terminal-here-terminal-command) (terminal-here-launch-in-directory "adir")))) @@ -106,6 +107,6 @@ (setq launch-command command)))) (validate-setq terminal-here-command-flag "-k") (terminal-here-launch-in-directory "/ssh:david@pi:/home/pi/") - (should (equal (car launch-command) "x-terminal-emulator")) + (should (equal (car launch-command) (terminal-here-find-terminal))) (should (equal (cadr launch-command) "-k")) (should (equal (caddr launch-command) "ssh")))) -- cgit v1.3