https://bugs.kde.org/show_bug.cgi?id=380311
Bug ID: 380311 Summary: No way to launch ssh-agent with interactivity under Wayland Product: plasmashell Version: 5.9.5 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: generic-wayland Assignee: plasma-b...@kde.org Reporter: hec...@marcansoft.com Target Milestone: 1.0 AIUI, the supported method for launching background daemons that also set environment variables under Plasma is ~/.config/plasma-workspace/env/*.sh. Under X11, the $DISPLAY environment variable exists when these scripts are sourced. However, under Wayland, these scripts are sourced before the compositor is started and $WAYLAND_DISPLAY does not exist. This makes it impossible to launch ssh-agent and use it interactively, e.g. with SSH_ASKPASS=ksshaskpass because ksshaskpass has no idea what display to start in. I suspect the env scripts ought to be sourced from /usr/lib/startplasma (after kwin_wayland starts), not /usr/bin/startplasmacompositor. Or perhaps there should be two config directories, one for pre-compositor scripts and one for post-compositor scripts. Ugly workarounds are possible, of course (e.g. an autostart script that dumps the required variables somewhere, and an sshaskpass wrapper that pulls them in), but there should clearly be a better way. -- You are receiving this mail because: You are watching all bug changes.