cmake/config: use /etc/layers.json, install it to there too.
[staging/windowmanager.git] / src / config.cpp
index 1843639..b610c6e 100644 (file)
@@ -1,6 +1,18 @@
-//
-// Created by mfritzsc on 8/1/17.
-//
+/*
+ * Copyright (C) 2017 Mentor Graphics Development (Deutschland) GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 #include "config.hpp"
 
@@ -8,8 +20,7 @@ namespace wm {
 
 config::config() : cfg() {
    // Supply default values for these...
-   this->cfg["layers.json"] = getenv("LAYERS_JSON") ?: "../layers.json";
-   this->cfg["layout.json"] = getenv("LAYOUT_JSON") ?: "../layout.json";
+   this->cfg["layers.json"] = getenv("LAYERS_JSON") ?: "/etc/layers.json";
 }
 
-}  // namespace wm
\ No newline at end of file
+}  // namespace wm