fix(headless-kde): restart xdg-desktop-portal after kwin comes up
ci / rust (push) Has been cancelled
ci / rust (push) Has been cancelled
The portal processes bind to the compositor that existed when they started; after a kwin
restart the stale instances point at a dead socket and RemoteDesktop/EIS input injection
times out ("EIS setup timed out"). Hit live: a fresh session streamed fine but ate no
mouse/keyboard until the portals were restarted.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,11 @@ kwin_wayland --virtual --width "$W" --height "$H" --no-lockscreen \
|
||||
KWIN_PID=$!
|
||||
sleep 2
|
||||
|
||||
# The xdg-desktop-portal processes bind to the compositor that existed when THEY started;
|
||||
# after a kwin restart the stale instances point at a dead socket and RemoteDesktop/EIS
|
||||
# (mouse/keyboard injection) times out. Restart them against the fresh compositor.
|
||||
systemctl --user try-restart plasma-xdg-desktop-portal-kde.service xdg-desktop-portal.service 2>/dev/null || true
|
||||
|
||||
kbuildsycoca6 >/dev/null 2>&1 || true # rebuild the menu cache under the correct env
|
||||
plasmashell &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user