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

            Bug ID: 459616
           Summary: DesktopExecParser: Some terminals require "-e <cmd>"
                    while others just take the command directly
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 5.98.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: accounts+...@chiller3.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY

It seems that terminal emulators generally allow spawning an application inside
a new window with either "<terminal> -e <command>" or just "<terminal>
<command>". Currently, only the former (with "-e") is supported in
DesktopExecParser.

This causes "Terminal=true" desktop files to fail to launch when the default
terminal application is set to one that doesn't use/support "-e".

STEPS TO REPRODUCE
1. Set the default terminal to an application that doesn't use "-e" (eg.
wezterm or gnome-terminal)
2. Create a desktop file with "Terminal=true"
3. Launch the desktop file

OBSERVED RESULT

The default terminal fails to launch with some error message about "-e" being
an unknown argument (or similar).

EXPECTED RESULT

The default terminal should launch successfully with the specified command.

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: Fedora 36
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

I'm not sure there's a clean/foolproof way to make this work. I don't think
there's any sort of metadata (in the .desktop or similar) that describes how a
terminal expects a command to be passed to it.

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

Reply via email to