You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1.0 KiB
18 lines
1.0 KiB
diff -up plasma-desktop-5.8.5/containments/desktop/plugins/folder/foldermodel.cpp.than plasma-desktop-5.8.5/containments/desktop/plugins/folder/foldermodel.cpp
|
|
--- plasma-desktop-5.8.5/containments/desktop/plugins/folder/foldermodel.cpp.than 2017-02-13 17:02:37.079245114 +0100
|
|
+++ plasma-desktop-5.8.5/containments/desktop/plugins/folder/foldermodel.cpp 2017-02-13 17:46:04.152443288 +0100
|
|
@@ -509,7 +509,12 @@ void FolderModel::run(int row)
|
|
url.setScheme(QStringLiteral("file"));
|
|
}
|
|
|
|
- new KRun(url, 0);
|
|
+ KRun *run = new KRun(url, 0);
|
|
+ // On desktop:/ we want to be able to run .desktop files right away,
|
|
+ // otherwise ask for security reasons. We also don't use the targetUrl()
|
|
+ // from above since we don't want the resolved /home/foo/Desktop URL.
|
|
+ run->setShowScriptExecutionPrompt(item.url().scheme() != QLatin1String("desktop")
|
|
+ || item.url().adjusted(QUrl::RemoveFilename).path() != QLatin1String("/"));
|
|
}
|
|
|
|
void FolderModel::rename(int row, const QString& name)
|