STEPS TO REPRODUCE
Use Dolphin (version 20.12.0 or higher is required)
1. Go to "Configure Dolphin > General > Confirmations" and set "When opening executable file" to "Open in application".
2. Find any binary executable (for example, /usr/bin/kate) and click many times to open it
3. Go to "Configure Dolphin > General > Confirmations" and set "When opening executable file" to "Always ask".
4. Click to /usr/bin/kate to open it again, choose "Execute" in the opened dialog
Kate is opened many times.
Kate is opened exactly once.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/421
Git commit 7f81b92a3577fd318eef19f564206b8b0cc1cd05 by Ahmad Samir.
Committed on 21/04/2021 at 17:43.
Pushed by ahmadsamir into branch 'master'.
Make the openOrExecute dialog modal
It makes sense to make modal, and it goes with the general behaviour of dialogs
spawned by KIO jobs, e.g. RenameDialog and SkipDialog.
M +1 -0 src/widgets/widgetsopenorexecutefilehandler.cpp