diff options
author | pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-05-02 17:11:13 +0000 |
---|---|---|
committer | pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2012-05-02 17:11:13 +0000 |
commit | 2178e3a87ca9216e2584c040a1b15fc7423f4b65 (patch) | |
tree | 569c7bf51d7a5c56fc8da15da52a22d192a73e8f /lib/envars.ml | |
parent | 7b1a9e289de1bd792f49ad6ab0ded0b2fdebb972 (diff) |
Always add the Coq_config.dirs to xdg_dirs
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15265 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/envars.ml')
-rw-r--r-- | lib/envars.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/envars.ml b/lib/envars.ml index 4b0f57ada..c6bf8aee0 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 |