Skip to content

Commit dcbe292

Browse files
committed
Create default integration directory if necessary
1 parent 15a5a1e commit dcbe292

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/shared/shared.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@ QDirSet daemonDirectoriesToWatch(const std::shared_ptr<QSettings>& config) {
458458

459459
// of course we need to watch the main integration directory
460460
const auto defaultDestination = integratedAppImagesDestination();
461+
462+
// make sure it exists, otherwise the daemon doesn't have anything to do
463+
if (!defaultDestination.exists()) {
464+
defaultDestination.mkdir(".");
465+
}
466+
461467
watchedDirectories.insert(defaultDestination);
462468

463469
// however, there's likely additional ones to watch, like a system-wide Applications directory

0 commit comments

Comments
 (0)