浏览代码

* Add path-delimiters properly in GetAppConfigDir and GetAppConfigFile

git-svn-id: trunk@11384 -
joost 17 年之前
父节点
当前提交
acff7f60bd
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      rtl/unix/sysutils.pp

+ 4 - 4
rtl/unix/sysutils.pp

@@ -1014,9 +1014,9 @@ Function GetAppConfigDir(Global : Boolean) : String;
 
 begin
   If Global then
-    Result:=SysConfigDir
+    Result:=IncludeTrailingPathDelimiter(SysConfigDir)
   else
-    Result:=XdgConfigHome;
+    Result:=IncludeTrailingPathDelimiter(XdgConfigHome);
   if VendorName<>'' then
     Result:=IncludeTrailingPathDelimiter(Result+VendorName);
   Result:=IncludeTrailingPathDelimiter(Result+ApplicationName);
@@ -1026,9 +1026,9 @@ Function GetAppConfigFile(Global : Boolean; SubDir : Boolean) : String;
 
 begin
   If Global then
-    Result:=SysConfigDir
+    Result:=IncludeTrailingPathDelimiter(SysConfigDir)
   else
-    Result:=XdgConfigHome;
+    Result:=IncludeTrailingPathDelimiter(XdgConfigHome);
   if SubDir then
     begin
       if VendorName<>'' then