kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26706
KiCad patch: Use XDG_CONFIG_HOME on Windows
Hi,
this is my patch to use XDG_CONFIG_HOME environment variable on Windows.
regards
Mike (mwayne)
From b9d130cfcc1b848274f43dbe85012a185205fdbc Mon Sep 17 00:00:00 2001
From: mwayne <wodarczykmike@xxxxxxxxx>
Date: Wed, 26 Oct 2016 14:03:17 +0200
Subject: [PATCH] Use XDG_CONFIG_HOME on Windows
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.10.1.windows.1"
This is a multi-part message in MIME format.
--------------2.10.1.windows.1
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
---
common/common.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--------------2.10.1.windows.1
Content-Type: text/x-patch; name="0001-Use-XDG_CONFIG_HOME-on-Windows.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-Use-XDG_CONFIG_HOME-on-Windows.patch"
diff --git a/common/common.cpp b/common/common.cpp
index 976e419..8547956 100644
--- a/common/common.cpp
+++ b/common/common.cpp
@@ -362,7 +362,7 @@ wxString GetKicadConfigPath()
// Mac: ~/Library/Preferences
cfgpath.AssignDir( wxStandardPaths::Get().GetUserConfigDir() );
-#if !defined( __WINDOWS__ ) && !defined( __WXMAC__ )
+#if !defined( __WXMAC__ )
wxString envstr;
if( !wxGetEnv( wxT( "XDG_CONFIG_HOME" ), &envstr ) || envstr.IsEmpty() )
--------------2.10.1.windows.1--
Follow ups