change temporary profile directory

This commit is contained in:
arcan1s 2014-08-18 12:49:36 +04:00
parent f90b2d97a7
commit 709431ead2
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Ver.1.3.0
+ add tests
* rewrite to use [tasks](https://github.com/mhogomchungu/tasks) (see #7)
* rename getInterfaceList() to getWirelessInterfaceList()
* change temporaty directory from $HOME/.cache to system one
- remove functions getProfileDescriptions() and getProfileStatuses()
- remove SleepThread class
* plasmoid:

View File

@ -104,7 +104,7 @@ QString NetctlProfile::createProfile(const QString profile, const QMap<QString,
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Profile" << profile;
QString profileTempName = QDir::homePath() + QString("/.cache/") + QFileInfo(profile).fileName();
QString profileTempName = QDir::tempPath() + QDir::separator() + QFileInfo(profile).fileName();
QFile profileFile(profileTempName);
if (debug) qDebug() << PDEBUG << ":" << "Save to" << profileTempName;
if (!profileFile.open(QIODevice::WriteOnly | QIODevice::Text))