Krunner & Dolphin can't open executables due to security risk

Open Krunner or Dolphin and double click on a exe file (wine) or any executable for that matter will pop up a notification that says "For security reasons, launching executable is not allowed in this context"

This bug was fixed in official plasma a few months ago related to AllowExecutables in the source code (sorry no reference atm) but here is is again!

If you run dolphin from terminal the error that is spat out when you try to run executable via double-left-click (or single left click) is "kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found"....

This issue does not happen if you right click on the executable and select the runner (in this case wine).

Related URL:

https://bugs.kde.org/show_bug.cgi?id=433148

You can semi fix this by setting dolphin to ALWAYS ASK when running executable file and it will prompt you and run as per normal. But that is not a desired solution here as it doesn't fix krunner.

inxi
System:
Kernel: 5.16.2-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: root=UUID=7126ae6c-4ece-46fd-912a-42d2f8ee5553 rw
[email protected] quiet splash rd.udev.log_priority=3
vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
resume=UUID=a98a06d2-d0b8-41e4-9857-008e1041e841 loglevel=3
mitigations=off clocksource=tsc tsc=reliable
amdgpu.ppfeaturemask=0xffffffff [email protected]\boot\amd-ucode.img
[email protected]\boot\initramfs-linux-zen.img
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7C92 v: 1.0
serial: <superuser required>
Mobo: Micro-Star model: MPG B550I GAMING EDGE WIFI (MS-7C92) v: 1.0
serial: <superuser required> UEFI: American Megatrends LLC. v: 1.83
date: 09/26/2021
Battery:
Device-1: hidpp_battery_0 model: Logitech K800 serial: <filter>
charge: 70% (should be ignored) rechargeable: yes status: Full
Device-2: hidpp_battery_1 model: Logitech G604 Wireless Gaming Mouse
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: Discharging
CPU:
Info: model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000C
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3819 high: 4356 min/max: 1400/4672 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4041 2: 3939
3: 3574 4: 3429 5: 3549 6: 3504 7: 3567 8: 3965 9: 4033 10: 3584 11: 4092
12: 3400 13: 4292 14: 3924 15: 3863 16: 4356 bogomips: 121364
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Vulnerable
Type: spectre_v1 status: Vulnerable: __user pointer sanitization and
usercopy barriers only; no swapgs barriers
Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu
v: kernel bus-ID: 12:00.0 chip-ID: 1002:73bf class-ID: 0300
Device-2: AMD Cezanne driver: amdgpu v: kernel bus-ID: 30:00.0
chip-ID: 1002:1638 class-ID: 0300
Device-3: Realtek USB Camera type: USB driver: uvcvideo bus-ID: 7-1.3:5
chip-ID: 0bda:3035 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
s-diag: 1165mm (45.9")
Monitor-1: HDMI-A-0 res: 3840x2160 dpi: 61 size: 1600x900mm (63.0x35.4")
diag: 1836mm (72.3")
OpenGL: renderer: AMD Radeon RX 6800 XT (sienna_cichlid LLVM 13.0.0 DRM
3.44 5.16.2-zen1-1-zen)
v: 4.6 Mesa 22.0.0-devel (git-4198ca4b3f) direct render: Yes
Audio:
Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
driver: snd_hda_intel v: kernel bus-ID: 12:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
v: kernel bus-ID: 30:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-3: Creative SB Omni Surround 5.1 type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-6:2 chip-ID: 041e:322c
class-ID: 0300 serial: <filter>
Device-4: Realtek UACDemoV1.0 type: USB driver: snd-usb-audio
bus-ID: 7-1.1:4 chip-ID: 0bda:0005 class-ID: 0102
Device-5: SteelSeries ApS SteelSeries Arctis 7 type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 7-2:3 chip-ID: 1038:12ad
class-ID: 0300
Sound Server-1: ALSA v: k5.16.2-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.43 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: N/A modules: iwlwifi bus-ID: 29:00.0
chip-ID: 8086:2723 class-ID: 0280
Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel port: e000 bus-ID: 2a:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF: enp42s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-9:3 chip-ID: 8087:0029 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 4.83 TiB used: 2.19 TiB (45.2%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Samsung
model: SSD 960 EVO 500GB size: 465.76 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 2B7QCXE7 temp: 43.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 model: 2TB NVME SSD size: 1.86 TiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
type: SSD serial: <filter> rev: 42A2S8MA temp: 41.9 C scheme: MBR
ID-3: /dev/sda maj-min: 8:0 model: SATA3 1TB SSD size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 8A0 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WDS250G2B0A-00SM50 size: 232.89 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 30WD
scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 type: USB vendor: JMicron Tech model: N/A
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B type: N/A
serial: <filter> rev: 0508 scheme: GPT
ID-6: /dev/sde maj-min: 8:64 type: USB vendor: Generic
model: MassStorageClass size: 476.88 GiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> rev: 1536 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 435.36 GiB size: 435.36 GiB (100.00%)
used: 154.97 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 23.2 MiB (7.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3
ID-3: /home raw-size: 435.36 GiB size: 435.36 GiB (100.00%)
used: 154.97 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-4: /var/log raw-size: 435.36 GiB size: 435.36 GiB (100.00%)
used: 154.97 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
ID-5: /var/tmp raw-size: 435.36 GiB size: 435.36 GiB (100.00%)
used: 154.97 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:4
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 30.1 GiB used: 2.2 MiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:5
Sensors:
System Temperatures: cpu: N/A mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 42.0 C device: amdgpu temp: 42.0 C mem: 50.0 C
fan: 0 watts: 35.00
Info:
Processes: 487 Uptime: 1h 29m wakeups: 11 Memory: 27.36 GiB
used: 6.09 GiB (22.3%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1853 lib: 521 Shell: fish
v: 3.3.1 default: Bash v: 5.1.16 running-in: yakuake inxi: 3.3.12
2 Likes

Hi @theriddick ,

We would rather wait for bugfix in upstream.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.