aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ide/minilib.ml4
-rw-r--r--lib/envars.ml6
2 files changed, 5 insertions, 5 deletions
diff --git a/ide/minilib.ml b/ide/minilib.ml
index cec77f3b8b..2400872a4b 100644
--- a/ide/minilib.ml
+++ b/ide/minilib.ml
@@ -85,7 +85,7 @@ let xdg_config_home =
let xdg_config_dirs =
xdg_config_home :: (try
List.map (fun dir -> Filename.concat dir "coq") (path_to_list (Sys.getenv "XDG_CONFIG_DIRS"))
- with Not_found -> "/etc/xdg/coq"::(match Coq_config.configdir with |None -> [] |Some d -> [d]))
+ with Not_found -> ["/etc/xdg/coq"])@(match Coq_config.configdir with |None -> [] |Some d -> [d])
let xdg_data_home =
try
@@ -97,7 +97,7 @@ let xdg_data_dirs =
xdg_data_home :: (try
List.map (fun dir -> Filename.concat dir "coq") (path_to_list (Sys.getenv "XDG_DATA_DIRS"))
with Not_found ->
- "/usr/local/share/coq"::"/usr/share/coq"::(match Coq_config.datadir with |None -> [] |Some d -> [d]))
+ ["/usr/local/share/coq";"/usr/share/coq"])@(match Coq_config.datadir with |None -> [] |Some d -> [d])
let coqtop_path = ref ""
diff --git a/lib/envars.ml b/lib/envars.ml
index 4b0f57ada7..c6bf8aee00 100644
--- a/lib/envars.ml
+++ b/lib/envars.ml
@@ -106,10 +106,10 @@ let xdg_config_home ~warn =
"coq"
let xdg_data_dirs =
- try
+ (try
List.map (fun dir -> Filename.concat dir "coq") (path_to_list (Sys.getenv "XDG_DATA_DIRS"))
- with Not_found -> "/usr/local/share/coq" :: "/usr/share/coq"
- :: (match Coq_config.datadir with |None -> [] |Some datadir -> [datadir])
+ with Not_found -> ["/usr/local/share/coq";"/usr/share/coq"])
+ @ (match Coq_config.datadir with |None -> [] |Some datadir -> [datadir])
let xdg_dirs ~warn =
let dirs = xdg_data_home warn :: xdg_data_dirs