]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Allow the openURLJob to run executables
authorNate Graham <nate@kde.org>
Tue, 24 Nov 2020 20:47:48 +0000 (13:47 -0700)
committerNate Graham <nate@kde.org>
Tue, 24 Nov 2020 20:47:48 +0000 (13:47 -0700)
Otherwise, excecutable files like AppImages won't be allowed to launch
even if they are correctly marked as executable.

BUG: 429603
FIXED-IN: 20.12

src/dolphinviewcontainer.cpp

index 4b11fc3d1115a73e96dc6b79f58a32c206559a60..7260d2c4c0d222f480f1b31779aa2230ce8c5625 100644 (file)
@@ -638,6 +638,7 @@ void DolphinViewContainer::slotItemActivated(const KFileItem& item)
     }
 
     KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl());
     }
 
     KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl());
+    job->setRunExecutables(true);
     job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
     job->setShowOpenOrExecuteDialog(true);
     job->start();
     job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
     job->setShowOpenOrExecuteDialog(true);
     job->start();