1234567891011121314151617181920212223242526272829303132333435363738394041 |
- --- kodi-14.0alpha4.orig/xbmc/Application.cpp 2014-09-05 14:09:59.000000000 +0200
- +++ kodi-14.0alpha4/xbmc/Application.cpp 2014-09-05 15:48:59.475115902 +0200
- @@ -679,7 +679,7 @@ bool CApplication::Create()
-
- if (!CLog::Init(CSpecialProtocol::TranslatePath(g_advancedSettings.m_logFolder).c_str()))
- {
- - fprintf(stderr,"Could not init logging classes. Permission errors on ~/.xbmc (%s)\n",
- + fprintf(stderr,"Could not init logging classes. Permission errors on %s\n",
- CSpecialProtocol::TranslatePath(g_advancedSettings.m_logFolder).c_str());
- return false;
- }
- @@ -1090,10 +1090,13 @@ bool CApplication::InitDirectoriesLinux(
- userName = "root";
-
- CStdString userHome;
- + userHome = "/data/xbmc";
- +/*
- if (getenv("HOME"))
- userHome = getenv("HOME");
- else
- userHome = "/root";
- +*/
-
- CStdString xbmcBinPath, xbmcPath;
- CUtil::GetHomePath(xbmcBinPath, "XBMC_BIN_HOME");
- @@ -1125,11 +1128,11 @@ bool CApplication::InitDirectoriesLinux(
- // map our special drives
- CSpecialProtocol::SetXBMCBinPath(xbmcBinPath);
- CSpecialProtocol::SetXBMCPath(xbmcPath);
- - CSpecialProtocol::SetHomePath(userHome + "/.xbmc");
- - CSpecialProtocol::SetMasterProfilePath(userHome + "/.xbmc/userdata");
- + CSpecialProtocol::SetHomePath(userHome);
- + CSpecialProtocol::SetMasterProfilePath(userHome + "/userdata");
-
- - CStdString strTempPath = userHome;
- - strTempPath = URIUtils::AddFileToFolder(strTempPath, ".xbmc/temp");
- + CStdString strTempPath = "/tmp";
- + strTempPath = URIUtils::AddFileToFolder(strTempPath, "/xbmc");
- if (getenv("XBMC_TEMP"))
- strTempPath = getenv("XBMC_TEMP");
- CSpecialProtocol::SetTempPath(strTempPath);
|