Skip to content
Snippets Groups Projects
Commit f3e7aaec authored by akiraohgaki's avatar akiraohgaki
Browse files

Merge branch 'master' into develop

parents 69fa86f2 9298f80c
No related branches found
No related tags found
No related merge requests found
{ {
"id": "ocs-manager", "id": "ocs-manager",
"name": "ocs-manager", "name": "ocs-manager",
"version": "0.4.1", "version": "0.4.2",
"organization": "Opendesktop.org", "organization": "Opendesktop.org",
"domain": "org.opendesktop.ocs-manager", "domain": "org.opendesktop.ocs-manager",
"icon": "", "icon": "",
......
...@@ -314,8 +314,10 @@ void ItemHandler::installDownloadedFile(qtlib::NetworkResource *resource) ...@@ -314,8 +314,10 @@ void ItemHandler::installDownloadedFile(qtlib::NetworkResource *resource)
auto filename = metadata["filename"].toString(); auto filename = metadata["filename"].toString();
auto installType = metadata["install_type"].toString(); auto installType = metadata["install_type"].toString();
auto tempDirPrefix = configHandler_->getAppConfigApplication()["id"].toString() + "_" + filename; QString tempDirPrefix = "temp_" + filename;
qtlib::Dir tempDir(qtlib::Dir::tempPath() + "/" + tempDirPrefix); qtlib::Dir tempDir(qtlib::Dir::genericCachePath() + "/"
+ configHandler_->getAppConfigApplication()["id"].toString() + "/"
+ tempDirPrefix);
tempDir.make(); tempDir.make();
qtlib::Dir tempDestDir(tempDir.path() + "/dest"); qtlib::Dir tempDestDir(tempDir.path() + "/dest");
tempDestDir.make(); tempDestDir.make();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment