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

            Bug ID: 441546
           Summary: KService isValid() fails unknown error code 100 when
                    TryExec= contains two binaries separated by space
           Product: frameworks-kservice
           Version: 5.83.0
          Platform: Debian unstable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: fa...@kde.org
          Reporter: sandro.jaec...@posteo.de
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 141049
  --> https://bugs.kde.org/attachment.cgi?id=141049&action=edit
picture of the error message

When trying to open a desktop file which contains an invalid TryExec like
``TryExec=nixGLIntel wezterm`` KDE presents the user with ``Unknown Error Code
100`` instead of explaining the situation properly. I believe this should be
handled better by KDE.


STEPS TO REPRODUCE
1. Create a Desktop file named wezterm.desktop with the content:
```
[Desktop Entry]
Name=WezTerm
Comment=Wez's Terminal Emulator
Keywords=shell;prompt;command;commandline;cmd;
Icon=org.wezfurlong.wezterm
TryExec=nixGLIntel wezterm
Exec=nixGLIntel wezterm
Type=Application
Categories=System;TerminalEmulator;Utility;
Terminal=false
```
2. Open the directory in Dolphin
3. Try to execute the Desktop file
4. See the not describing error message

OBSERVED RESULT

See attachment

EXPECTED RESULT

Tell the user that the binary "nixGLIntel wezterm" does not exist or properly
handle spaces.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Debian Unstable
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.83.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION

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

Reply via email to