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

--- Comment #1 from Jan Felix Langenbach <janfelix.langenb...@protonmail.com> 
---
After thinking about it a bit, I think it should be handled like this:

1. If the file does not have the executable bit set, always perform the "Open
with" action.
2. If the file does have the executable bit set, show the "Open or Execute"
dialog, EXCEPT:
        2.1. If the file type has no registered "Open with" handler, (for
consistency with the
               current behavior) show the "Execute or Cancel" dialog instead.
3. If the user chose "Execute" then just exec() the file and let the Kernel
handle the rest.
4. Otherwise perform the "Open with" action as usual.

Keep the special treatment for .desktop files, but remove it for ELF binaries,
Windows
binaries and text scripts. Those should just work as expected in pretty much
all cases
with the additional benefit of supporting binfmt_misc.

This scheme should also be simpler and more consistent than the current one. It
would
allow users to have separate "Open with" and "Run with" handlers through the
MIME
database and `binfmt.d` respectively.

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

Reply via email to