Responding to c#10
>This blocks loading the desktop until you entered the KWallet password, but it works.
Then you are doing too much in your script. You are starting ssh-agent and you
are adding a key.
Just start ssh-agent, then you won't run into problems. You can setup a
separate script, maybe with systems-settings --> startup and shutdown
for adding a key.
Starting ssh-agent needs to be done early in startup, so that the relevant
ENVIRONMENT variables can be shared with the entire desktop. So it has to be
synchronous. But adding a key can be done later in startup, because the key is
just handed to the already running ssh-agent, which does any sharing needed.