allow to optionally use vendor name component in standard paths (slightly modified patch 1831308)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-17 14:59:13 +00:00
parent 180b5b4827
commit 2b147f2e19
8 changed files with 106 additions and 21 deletions

View File

@@ -75,12 +75,12 @@ wxString wxStandardPaths::GetConfigDir() const
wxString wxStandardPaths::GetDataDir() const
{
return AppendAppName(GetInstallPrefix() + _T("/sys$share"));
return AppendAppInfo(GetInstallPrefix() + _T("/sys$share"));
}
wxString wxStandardPaths::GetLocalDataDir() const
{
return AppendAppName(_T("/sys$manager"));
return AppendAppInfo(_T("/sys$manager"));
}
wxString wxStandardPaths::GetUserDataDir() const
@@ -187,22 +187,22 @@ wxString wxStandardPaths::GetConfigDir() const
wxString wxStandardPaths::GetDataDir() const
{
return AppendAppName(GetInstallPrefix() + _T("/share"));
return AppendAppInfo(GetInstallPrefix() + _T("/share"));
}
wxString wxStandardPaths::GetLocalDataDir() const
{
return AppendAppName(_T("/etc"));
return AppendAppInfo(_T("/etc"));
}
wxString wxStandardPaths::GetUserDataDir() const
{
return AppendAppName(wxFileName::GetHomeDir() + _T("/."));
return AppendAppInfo(wxFileName::GetHomeDir() + _T("/."));
}
wxString wxStandardPaths::GetPluginsDir() const
{
return AppendAppName(GetInstallPrefix() + _T("/lib"));
return AppendAppInfo(GetInstallPrefix() + _T("/lib"));
}
wxString