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

Krzysztof Nazarewski <bugs.kde....@kdn.im> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugs.kde....@kdn.im

--- Comment #4 from Krzysztof Nazarewski <bugs.kde....@kdn.im> ---
I have discovered this issue directly from the linked wl-clipboard issue (
https://github.com/bugaevc/wl-clipboard/issues/153 ) while creating one of my
own ( https://github.com/bugaevc/wl-clipboard/issues/201 ).

Lack of stdout/stderr redirection for scripts triggered by KDE hotkeys seems
like a weird design choice. I expected possible errors to be automatically
redirected to DE's logs like what I observed in Sway before.

I can provide more complete setup reproducing the issue:

in `plasma-manager-commands.desktop`:
> [Desktop Action get-kwallet-password]
> Exec=get-kwallet-password
> Name=Copy KWallet Password to clipboard

in `~/.config/kglobalshortcutsrc`:
> [plasma-manager-commands.desktop]
> _k_friendly_name=Plasma (Home) Manager Commands
> foot=Meta+Return,none,foot
> get-kwallet-password=Meta+Shift+P\tMeta+J,none,get-kwallet-password

in `~/.local/bin/get-kwallet-password`:
> #!/usr/bin/env bash
> pass show kwallet | wl-copy -n
> notify-send --expire-time=10000 --wait "KWallet password" "is available in 
> clipboard until this notificaton closes"
> for i in {1..10} ; do
>   echo "password cleared $i times" | wl-copy
> done
> wl-copy --clear

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

Reply via email to