aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base/UIni.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/UIni.pas b/src/base/UIni.pas
index b286c917..4f401b01 100644
--- a/src/base/UIni.pas
+++ b/src/base/UIni.pas
@@ -883,8 +883,9 @@ begin
IniFile.WriteString('Controller', 'Joypad', IJoypad[Joypad]);
// Directories (add a template if section is missing)
+ // Note: Value must be ' ' and not '', otherwise no key is generated on Linux
if (not IniFile.SectionExists('Directories')) then
- IniFile.WriteString('Directories', 'SongDir1', '');
+ IniFile.WriteString('Directories', 'SongDir1', ' ');
IniFile.Free;
end;