Bug 493150 - App Chooser allows selection of "other" executable but does not then allow launching it
Summary: App Chooser allows selection of "other" executable but does not then allow la...
Status: RESOLVED FIXED
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.90
Platform: Arch Linux Linux
: VHI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 493698 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-15 10:42 UTC by Paul Worrall
Modified: 2024-09-28 19:35 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
Screen recording, sorry it's a bit blurry (1.36 MB, video/mp4)
2024-09-17 06:14 UTC, Paul Worrall
Details
Screenshot of the final dialog (58.03 KB, image/png)
2024-09-17 06:17 UTC, Paul Worrall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Worrall 2024-09-15 10:42:16 UTC
SUMMARY
The dialog for choosing which application to open a selected file has the option to "Choose Other...", but after browsing and selecting another program in the file system, there seems to be no way to then actually use the program you've chosen.

STEPS TO REPRODUCE
1. Right-click a file in Dolphin and choose Open With -> Other Application...
2. Select "Choose Other" and browse for another program (I tried /usr/bin/xdg-open)

OBSERVED RESULT
The chosen program appears in the text box on the left, but I can see no way of actually launching it.

EXPECTED RESULT
Maybe it should appear in the box below that says "No Matches" and be selectable there?

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.5.0
Qt Version: 6.8.0
Graphics Platform: Wayland
Comment 1 Marco Martin 2024-09-16 13:53:40 UTC Comment hidden (spam)
Comment 2 Nate Graham 2024-09-16 16:42:09 UTC
Can you attach a screenshot or a screen recording of the view that shows the other apps that you can choose? Let's make sure it's the one we all have in mind.
Comment 3 Paul Worrall 2024-09-17 06:14:20 UTC
Created attachment 173751 [details]
Screen recording, sorry it's a bit blurry
Comment 4 Paul Worrall 2024-09-17 06:17:33 UTC
Created attachment 173752 [details]
Screenshot of the final dialog

How do I now actually launch xdg-open and use it to open the file ?
Comment 5 Nate Graham 2024-09-17 18:11:14 UTC
Aha! I can reproduce this. This UI needs some refinement for sure.
Comment 6 Nate Graham 2024-09-26 21:14:34 UTC
*** Bug 493698 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2024-09-26 22:28:39 UTC
I've pushed a branch named work/ngraham/accept-terminal-commands to xdg-desktop-portal which implements the UI, but I'm failing to see where in the backend this would have gotten done. This is very surprising to me, since I definitely QA'd this in the past. Somehow it broke between the time when I verified it working and now. Maybe there was some kind of intervening refactor that removed the things we need here? Or maybe I'm just crazy and it never worked and I'm terrible at my job.
Comment 8 Bug Janitor Service 2024-09-27 13:02:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/320
Comment 9 Nate Graham 2024-09-27 13:28:56 UTC
Git commit f9526d3519d2342dfd855eee3849adb20e7c8c57 by Nate Graham.
Committed on 27/09/2024 at 13:01.
Pushed by ngraham into branch 'master'.

AppChooserDialog: allow accepting terminal commands

Looks like this it broke after a refactor of the dialog after it was
originally written.
FIXED-IN: 6.2.0

M  +33   -8    src/AppChooserDialog.qml

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/f9526d3519d2342dfd855eee3849adb20e7c8c57
Comment 10 Nate Graham 2024-09-28 19:35:58 UTC
Git commit a09ffaf4112afd7a65963b36eefe1285d4493ffd by Nate Graham.
Committed on 28/09/2024 at 19:33.
Pushed by ngraham into branch 'Plasma/6.2'.

AppChooserDialog: allow accepting terminal commands

Looks like this it broke after a refactor of the dialog after it was
originally written.
FIXED-IN: 6.2.0


(cherry picked from commit f9526d3519d2342dfd855eee3849adb20e7c8c57)

Co-authored-by: Nate Graham <nate@kde.org>

M  +33   -8    src/AppChooserDialog.qml

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/a09ffaf4112afd7a65963b36eefe1285d4493ffd