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

            Bug ID: 497393
           Summary: Unable to start Windows executables using the Wine
                    binfmt_misc handler
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 6.8.0
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: janfelix.langenb...@protonmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
Windows executables are never started using the Wine binfmt_misc handler. When
double-clicking a '.exe' file in Dolphin, the user is shown an "Execute or
Cancel" dialogue, even when the executable bit is not set. Upon clicking
"Execute", the user is show the "Choose an application to open this file"
dialogue. The file is never executed.

STEPS TO REPRODUCE
1. Enable Wine’s binfmt_misc handler
2. Disable the Wine mime-type handler
3. Mark test.exe as executable (or not, it doesn’t matter)
4. Double-click test.exe in Dolphin
5. Choose "Execute" in the "Open or Execute" dialogue

OBSERVED RESULT
Dolphin opens the "Choose an Application to open this file" dialogue.

EXPECTED RESULT
If test.exe is executable, it is executed using the Wine binfmt_misc handler.
If test.exe is not executable, the user is never prompted to confirm it’s
execution.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
I believe the problem originates in KIO::OpenUrlJobPrivate::handleBinaries().
Windows executables are always handled with openInPreferredApp() and never with
executeCommand(), even when the executable bit is set and the user chose to
execute the file when prompted.

This issue likely falls under the umbrella of
https://bugs.kde.org/show_bug.cgi?id=392048 which was closed by the bug janitor
service. If you believe it should be tracked there, feel free to close this bug
and re-open that one.

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

Reply via email to