Skip to content

feat(viewer): add an opt-in independent-session companion - #159

Open
Zhenqiang-Weng wants to merge 1 commit into
VallierDev:mainfrom
Zhenqiang-Weng:feat/independent-session-companion
Open

Zhenqiang-Weng wants to merge 1 commit into
VallierDev:mainfrom
Zhenqiang-Weng:feat/independent-session-companion

Conversation

@Zhenqiang-Weng

Copy link
Copy Markdown
Contributor

Add an optional companion that starts one user service and desktop entry per remote device, so a session survives closing the launcher and reopening an entry reuses its window. Explicit account sign-out stops independent sessions.

Install the Python helper separately, then opt in with UU_VIEWER_INDEPENDENT=1 uuremote-viewer ui. Two actions appear under More tools; the default UI, existing Quick launch, and managed-session behavior stay intact. Per-device options cover font, decoder canvas and optional takeover (off by default). The installer only installs the helper and does not replace the package or main desktop entry.

This separates the companion proposal from #156. It contains no icon redesign, LD_PRELOAD adapter, keyboard remapping, XIM override, Debian version gate, or PNG/file/terminal clipboard workaround. Input and clipboard continue through the native viewer.

Validation on fcfd2b6:

  • Base Rust tests: 311 passed, 8 ignored; viewer feature tests: 202 passed, 1 ignored; feature build passed.
  • Eight fixture tests cover configuration permissions, desktop escaping, reuse, selected-device routing, opt-in takeover and environment propagation; ShellCheck passed.
  • GTK smoke checks cover hidden-by-default actions, both opt-in action routes, and existing English/Chinese light/dark/system appearance checks.

Requires a Linux graphical session, Python 3/systemd, and PyGObject/GTK3 for settings. X11/XWayland window reuse was live-tested in the original companion; native Wayland activation and end-to-end two-controller takeover remain unverified. No credentials or machine-specific configuration are included.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 04:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@VallierDev

Copy link
Copy Markdown
Owner

Thanks for separating the companion from the other changes. It's opt-in and doesn't change the default UI, but it still adds a new Python helper that installs per-device user services. Whether that belongs in this repo (versus being maintained as an external tool) is a scope call for the maintainer, so I'm holding this PR until that's decided, and I haven't approved fork CI yet. I'll follow up here.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants