emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 6bf78fb 02/13: improve kiwix-server-command custo


From: Stefan Monnier
Subject: [elpa] externals/kiwix 6bf78fb 02/13: improve kiwix-server-command custom option
Date: Mon, 4 Jan 2021 01:12:49 -0500 (EST)

branch: externals/kiwix
commit 6bf78fb35057ba494e04096d8c66ad376cc70eb6
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: stardiviner <numbchild@gmail.com>

    improve kiwix-server-command custom option
---
 kiwix.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 7321cb3..8c9c9dd 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -83,11 +83,11 @@
 
 (defcustom kiwix-server-command
   (cond
-   ((string-equal system-type "gnu/linux")
-    "/usr/lib/kiwix/bin/kiwix-serve ")
-   ((string-equal system-type "darwin")
+   ((file-executable-p "/usr/bin/kiwix-serve") "/usr/bin/kiwix-serve")
+   ((eq system-type 'gnu/linux) "/usr/lib/kiwix/bin/kiwix-serve")
+   ((eq system-type 'darwin)
     (warn "You need to specify Mac OS X Kiwix path. And send a PR to my 
repo."))
-   ((string-equal system-type "windows-nt")
+   ((eq system-type 'windows-nt)
     (warn "You need to specify Windows Kiwix path. And send a PR to my 
repo.")))
   "Specify kiwix server command."
   :type 'string)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]