summarylogtreecommitdiffstats
path: root/update-cfg.patch
blob: a0fe1d3026c12f9bcd2b4c1e379f11ef21fc7d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/src/OpenSpace/openspace.cfg
+++ b/src/OpenSpace/openspace.cfg
@@ -56,7 +56,8 @@ Paths = {
   DATA = "${BASE}/data",
   ASSETS = "${DATA}/assets",
   PROFILES = "${DATA}/profiles",
-  USER = os.getenv("OPENSPACE_USER") or "${BASE}/user",
+  USER_HOME = os.getenv("HOME"),
+  USER = "${USER_HOME}/.config/openspace/user",
   USER_ASSETS = "${USER}/data/assets",
   USER_PROFILES = "${USER}/data/profiles",
   USER_CONFIG = "${USER}/config",
@@ -70,19 +71,19 @@ Paths = {
   -- value.  Otherwise, fall back to the ${BASE}/sync folder instead.  This allows a
   -- reuse of the sync folder between multiple OpenSpace installations by simply setting
   -- that environment variable
-  SYNC = os.getenv("OPENSPACE_SYNC") or "${BASE}/sync",
+  SYNC = os.getenv("OPENSPACE_SYNC") or "${USER}/../sync",
   SCREENSHOTS = "${USER}/screenshots",
   WEB = "${DATA}/web",
   RECORDINGS = "${USER}/recordings",
-  CACHE = "${BASE}/cache",
+  CACHE = "${USER}/../cache",
   CONFIG = "${BASE}/config",
   DOCUMENTATION = "${BASE}/documentation",
-  LOGS = "${BASE}/logs",
+  LOGS = "${USER}/logs",
   MODULES = "${BASE}/modules",
   SCRIPTS = "${BASE}/scripts",
   SHADERS = "${BASE}/shaders",
-  TEMPORARY = "${BASE}/temp",
-  GLOBEBROWSING = os.getenv("OPENSPACE_GLOBEBROWSING") or "${USER}/globebrowsing"
+  TEMPORARY = "${USER}/../temp",
+  GLOBEBROWSING = os.getenv("OPENSPACE_GLOBEBROWSING") or "${USER}/../globebrowsing"
 }
 
 ModuleConfigurations = {