Bug 493698

Summary: Unable to choose a 'custom' application for "Open With" via Dolphin
Product: [Plasma] xdg-desktop-portal-kde Reporter: Luke Horwell <code>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the user stuck choosing a custom path

Description Luke Horwell 2024-09-26 15:30:23 UTC
Created attachment 174113 [details]
Screenshot of the user stuck choosing a custom path

SUMMARY

In Dolphin, "Open With" → "Choose Application..." appears to be using this portal. However, it regresses functionality since it is impossible to use a custom program path. For example, qt6-tools no longer ships with *.desktop launchers, so a *.ui file needs to be opened with "/usr/lib/qt6/bin/designer" to use the Qt 6 version of Qt Designer.

Thankfully, the old chooser still works by right clicking the file → Properties and adding the program to the file association there instead.


STEPS TO REPRODUCE
1. Create an empty *.ui file in Dolphin.
2. Right click the file and choose "Open With" → "Other Application..."
3. Type "/usr/lib/qt6/bin/designer" or try selecting the path.
4. Run the program


OBSERVED RESULT

The user is stuck. There is no way to start a program with a 'custom' path or command line.

- Clicking "Choose Other..." button only updates the text field.
- Pressing ENTER does nothing.
- There is no OK button.


EXPECTED RESULT

The portal allows a custom path to be used, or Dolphin reverts to the previous file association "list selector".


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

As feedback, I completely missed the "Always open" checkbox at the top. I felt disorientated thinking the dialog was broken since "Cancel" and "OK" dialog buttons were missing at the bottom. The dialog does jarring a bit when it first opens.

I much prefer the old file association "list", is there a way to disable this portal on desktop? (Or any hints on which commits to revert?)
Comment 1 Nate Graham 2024-09-26 21:14:33 UTC

*** This bug has been marked as a duplicate of bug 493150 ***