# HG changeset patch # User nemo # Date 1288649256 14400 # Node ID 6bbc5a167a21364077f420d6b2a51a0cff8e54bc # Parent 0d0bf0533eee1c252891fabf676ba3c91db2cb28 check for subs first diff -r 0d0bf0533eee -r 6bbc5a167a21 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Mon Nov 01 17:58:59 2010 -0400 +++ b/QTfrontend/hwform.cpp Mon Nov 01 18:07:36 2010 -0400 @@ -1132,7 +1132,12 @@ registry_hkcr.setValue("Hedgewars.Demo/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); registry_hkcr.setValue("Hedgewars.Save/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); #else + if (success) success = checkForDir(QDir::home().absolutePath() + "/.local"); + if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share"); + if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime"); if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime/packages"); + if (success) success = checkForDir(QDir::home().absolutePath() + "/.local"); + if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share"); if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/applications"); if (success) success = system(("cp "+datadir->absolutePath()+"/misc/hedgewars-mimeinfo.xml "+QDir::home().absolutePath()+"/.local/share/mime/packages").toLocal8Bit().constData())==0; if (success) success = system(("cp "+datadir->absolutePath()+"/misc/hwengine.desktop "+QDir::home().absolutePath()+"/.local/share/applications").toLocal8Bit().constData())==0;