Merge pull request #2784 from Trial97/ensure_desktop
ensure that the shortcut destination exists
This commit is contained in:
commit
42eedd1afa
@ -921,6 +921,10 @@ bool createShortcut(QString destination, QString target, QStringList args, QStri
|
||||
if (destination.isEmpty()) {
|
||||
destination = PathCombine(getDesktopDir(), RemoveInvalidFilenameChars(name));
|
||||
}
|
||||
if (!ensureFilePathExists(destination)) {
|
||||
qWarning() << "Destination path can't be created!";
|
||||
return false;
|
||||
}
|
||||
#if defined(Q_OS_MACOS)
|
||||
// Create the Application
|
||||
QDir applicationDirectory =
|
||||
|
Loading…
Reference in New Issue
Block a user