Execute .desktop file

Authored by gengisdave on Mon, May 4, 9:08 PM.


Group Reviewers

This patch allows the user to run .desktop instead of opening it in the external editor.

As a .desktop file could lead to security issues (evil Exec=), KIO will warn the user when he tries to launch it from an unknown location (see XDG_DATA_DIRS), setting the file with executable bit if the user confirms.

An option could be to add a Konfigurator flag to warn the user (possibly doubling the dialogs).

FIXED: [ 394938 ] Can't run .desktop files
BUG: 394938

Test Plan

Compile and test, even in root mode

Diff Detail

R167 Krusader
Lint Skipped
Unit Tests Skipped
gengisdave requested review of this revision.Mon, May 4, 9:08 PM
gengisdave created this revision.
gengisdave edited the summary of this revision. (Show Details)Mon, May 4, 9:11 PM
asensi added a subscriber: asensi.Sat, May 9, 12:27 PM

Thanks, Davide! The resulting code worked under Kubuntu 18.04 and Kubuntu 20.04, other people can do their checks. I attach some .desktop files:

asensi accepted this revision as: asensi.Sat, May 9, 12:31 PM
This revision is now accepted and ready to land.Sat, May 9, 12:31 PM