https://bugs.kde.org/show_bug.cgi?id=516896
Bug ID: 516896
Summary: Pre-startup scripts start before KDE Wallet
Classification: Plasma
Product: plasmashell
Version First 6.6.0
Reported In:
Platform: openSUSE
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Startup process
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
My KDE Wallet is encrypted using GPG key with a passphrase so to open it I need
to enter that passphrase at login. My SSH key also have a passphrase and to
avoid entering it each time I log in over SSH, I use the KDE Wallet to store
it.
To record the SSH key passphrase in the KDE Wallet, I use the following
pre-startup script located in `~/.config/plasma-workspace/env`:
> #!/bin/sh
>
> export SSH_ASKPASS=/usr/libexec/ssh/ksshaskpass
> /usr/bin/ssh-add -q < /dev/null
The script starts the OpenSSH authentication agent and adds the SSH key(s).
When executed for the first time, it additionally asks for the SSH key
passphrase firing up the Ksshaskpass and, finally, records the passphrase in
the KDE Wallet so that I don't have to enter it again.
However, to use that nice functionality, the KDE Wallet needs to be open.
Up to quite recently, the things were working that way: at login, the KDE
Wallet opened up a dialogue to enter the GPG key passphrase so that the above
pre-startup script didn't have to ask for the SSH key passphrase, getting it
from the KDE Wallet.
Since a recent update (I can't pinpoint the exact KDE Plasma Version which
triggered the problem) the pre-startup script is executed before the KDE
Wallet, so that the Ksshaskpass fires up asking for the SSH key passphrase and
only after that the KDE Wallet asks for the GPG key passphrase, so that I have
to enter two passphrases at login. The SSH key passphrase is in KDE Wallet the
whole time, it is listed in the KDE Wallet Manager.
I tried to move the pre-startup script to ~/.config/autostart and create the
appropriate .desktop login script, however, it still asked for the SSH key
passphrase after login. Anyway, as the help says, "Pre-startup scripts are run
earlier and can be used to set environment variables", so the proper place for
such a script is `~/.config/plasma-workspace/env`.
System info:
Operating System: openSUSE Tumbleweed 20260226
KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Ksshaskpass Version: 6.6.0-1.1
Kernel Version: 6.19.3-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 8 GiB of RAM (7.5 GiB usable)
Graphics Processor: Mesa Intel® Iris® Xe Graphics
--
You are receiving this mail because:
You are watching all bug changes.