Bug 486184

Summary: Weird XDG MIME Behavior with KDE Dolphin on Sway/Hyprland
Product: [Applications] dolphin Reporter: hftsai256
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: hftsai256, kfm-devel, tonda.fischer
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Empty list in application selection window

Description hftsai256 2024-04-27 03:28:33 UTC
Created attachment 168937 [details]
Empty list in application selection window

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Start Dolphin in Non-Plasma desktop environment (reproducible in Sway and Hyprland)
2. Open a file by clicking/double-clicking the icon

OBSERVED RESULT
An application selection window pops up with no candidate in the list. 

EXPECTED RESULT
Open the selected file with the default application specified by xdg-mime.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, Kernel 6.6.28-1-lts
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
This bug does not present in KDE Plasma 6.0.4

sway 1:1.9-3
hyprland 0.39.1-5
Flatpak version yields the same result (v24.02.2)

~/.config/xdg-desktop-portal/hyprland-portals.conf:
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=kde

logs from /usr/lib/xdg-desktop-portal -rv:
XDP: Found 'kde' in configuration for org.freedesktop.impl.portal.FileChooser
XDP: Using kde.portal for org.freedesktop.impl.portal.FileChooser (config)
XDP: providing portal org.freedesktop.portal.FileChooser
XDP: Found 'kde' in configuration for org.freedesktop.impl.portal.AppChooser
XDP: Using kde.portal for org.freedesktop.impl.portal.AppChooser (config)
XDP: providing portal org.freedesktop.portal.OpenURI
org.freedesktop.impl.portal.AppChooser=kde

Original post in Arch Forum: https://bbs.archlinux.org/viewtopic.php?id=295236
Comment 1 Antonio Rojas 2024-04-27 06:43:02 UTC
Please continue on the forum thread, this is not a Dolphin bug
Comment 2 Antonio Rojas 2024-04-27 17:14:15 UTC
*** Bug 486209 has been marked as a duplicate of this bug. ***