SUMMARY A new % placeholder to represent the full SMB path smb://user:password@host/path/file including the password would make it possible to play videos through password-protected SMB e.g. with mplayer. STEPS TO REPRODUCE 1. Choose a file type 2. Go to Application preference order 3. Choose an application and modify 4. Application Type → Command 5. There you have can enter %u, %f and so on EXPECTED RESULT Being able to execute commands like smplayer smb://user:password@host/path/file with a single click in Dolphin
This would have to be proposed at the FreeDesktop level as there is a spec governing such things: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html Regarding the particular issue you're trying to resolve, installing kio-fuse should do it. :)
Proposed here: https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/69
David Faure, from the Desktop Entry Specification team, answered: «This is very unsecure, all other users on the system can use ps to see the password. That's the reason why it's not done this way. Also, the Desktop Entry Specification (https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html) doesn't say that the password should be removed so this is more of a KDE question than a freedesktop spec topic IMHO.» So maybe the best solution on the KDE side would be to provide an «Add share password to the URL» checkbox, maybe with a warning about the security issue, to let the user choose?
The KDE solution is to use kio-fuse which transparently handles this exact use case without the need to expose any passwords in plaintext. So there's no reason to implement the proposal as it is redundant with an existing approach that solves the problem, just in a different way. :)