File: revert-linux-savegame-path.patch

package info (click to toggle)
colobot 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 415,532 kB
  • sloc: cpp: 129,246; ansic: 8,872; python: 2,158; sh: 672; awk: 91; xml: 35; makefile: 31
file content (19 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Revert "Fix Linux savegame path issue" from Alexander Olofsson <ace@haxalot.com>

Upstream's d11404a6e9ddf5017f18b2ab0565c19e066f33ee

Given the buster freeze, don't break this for buster users just now.

--- a/src/common/system/system_linux.cpp
+++ b/src/common/system/system_linux.cpp
@@ -90,8 +90,8 @@ std::string CSystemUtilsLinux::GetSaveDi
 #else
     std::string savegameDir;
 
-    // Determine savegame dir according to XDG Base Directory Specification
-    auto envXDG_DATA_HOME = GetEnvVar("XDG_DATA_HOME");
+    // Determine savegame dir according to XDG Base Directory Specification; with a Debian-specific historic deviation
+    auto envXDG_DATA_HOME = GetEnvVar("XDG_CONFIG_DATA");
     if (envXDG_DATA_HOME.empty())
     {
         auto envHOME = GetEnvVar("HOME");