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

            Bug ID: 523672
           Summary: "Choose Application" dialog ignores program name/path
                    field, via the button "OK", with cryptic error
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.24.0
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 194716
  --> https://bugs.kde.org/attachment.cgi?id=194716&action=edit
"Open With" >> "Choose Application": cryptic error message

DESCRIPTION

The "Open With" >> "Choose Application" dialog sometimes ignores the program
name/path field, even when it contains text, resulting in a cryptic error
message after accepting/continuing via the button "OK". (See attached
screenshot for the error message.)

STEPS TO REPRODUCE
1. Pick any file, and do "Open With", then "Other Application".
2. Type anything (valid or otherwise) in the program name/path field.
3. Use the button "OK" to continue, either using a mouse, or its associated
keyboard shortcut accelerator. (NOT by pressing Enter via the keyboard.)

OBSERVED RESULT
Cryptic error message, regardless of the specified program being valid or not:
(See attached screenshot.)
> Could not extract executable name from '', please type a valid program name.

EXPECTED RESULT
Use the specified program name/path, and succeed/fail accordingly.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION
In this source code file (as of Git commit
dd85dc0a0bec89dc8a3947e183338274a7586e9e):
https://invent.kde.org/frameworks/kio/-/blob/master/src/core/openwith.cpp#L91

My understanding is that the error checking and message are confusing:
>        if (serviceName.isEmpty()) {
>            return {.accept = false, .error = i18n("Could not extract 
> executable name from '%1', please type a valid program name.", serviceName)};
>        }

Since if the service name is empty, then there's nothing to be shown to the
user via "%1", resulting in the cryptic error mentioned above.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to