[Bug 1183742] New: Environment variable set by Systemd user session service not seen from inside KDE session
http://bugzilla.opensuse.org/show_bug.cgi?id=1183742 Bug ID: 1183742 Summary: Environment variable set by Systemd user session service not seen from inside KDE session Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: KDE Workspace (Plasma) Assignee: opensuse-kde-bugs@opensuse.org Reporter: me+suse@tifr.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 847434 --> http://bugzilla.opensuse.org/attachment.cgi?id=847434&action=edit Systemd unit file for GnuPG as SSH Agent socket activation Environment ----------- Operating system: openSUSE Tumbleweed Desktop: KDE Plasma 5.21 Init system: Systemd 246 (246.10+suse.83.g134cf1c8bc) Actual behavior --------------- The `SSH_AUTH_SOCK` environment variable which is set by a socket activated Systemd user session service is not defined from inside KDE session. Expected behavior ----------------- The `SSH_AUTH_SOCK` environment variable is retroactively set for the already running KDE session, i.e. becomes visible as soon as the user session service becomes activated by a socket. Details ------- The `ExecStartPost` command line `/usr/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh` of unit file `gpg-agent-ssh.socket` should have the desired effect but apparently has not. [Unit] Description=GnuPG Agent daemon; socket access for SSH clients. Documentation=man:gpg-agent(1) man:ssh-add(1) man:ssh-agent(1) man:ssh(1) [Socket] ListenStream=%t/gnupg/S.gpg-agent.ssh ExecStartPost=/usr/bin/systemctl --user set-environment \ SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh FileDescriptorName=ssh Service=gpg-agent.service SocketMode=0600 DirectoryMode=0700 [Install] WantedBy=sockets.target -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183742 http://bugzilla.opensuse.org/show_bug.cgi?id=1183742#c1 --- Comment #1 from Tim Friske <me+suse@tifr.de> --- Created attachment 847435 --> http://bugzilla.opensuse.org/attachment.cgi?id=847435&action=edit Systemd unit file for running GnuPG Agent as supervised service -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183742 Tim Friske <me+suse@tifr.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Environment variable set by |Environment variable set |Systemd user session |during Systemd user session |service not seen from |socket activation not seen |inside KDE session |from inside KDE session -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com