| 115 | } |
| 116 | |
| 117 | QString PlasmoidExecutionJob::workingDirectory(ILaunchConfiguration* cfg) |
| 118 | { |
| 119 | QString workingDirectory; |
| 120 | IProject* p = cfg->project(); |
| 121 | if(p) { |
| 122 | QString identifier = cfg->config().readEntry("PlasmoidIdentifier", ""); |
| 123 | QString possiblePath = Path(p->path(), identifier).toLocalFile(); |
| 124 | if(QFileInfo(possiblePath).isDir()) { |
| 125 | workingDirectory = possiblePath; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | if(workingDirectory.isEmpty()) |
| 130 | { |
| 131 | workingDirectory = QDir::tempPath(); |
| 132 | } |
| 133 | return workingDirectory; |
| 134 | } |
| 135 | |
| 136 | #include "moc_plasmoidexecutionjob.cpp" |