Skip to content

seat: handle failed session create in switch-to-user (#431) - #491

Open
Franklin-Qi wants to merge 1 commit into
ubuntu:mainfrom
Franklin-Qi:fix/431-switch-to-user-null-session
Open

Franklin-Qi wants to merge 1 commit into
ubuntu:mainfrom
Franklin-Qi:fix/431-switch-to-user-null-session

Conversation

@Franklin-Qi

@Franklin-Qi Franklin-Qi commented Oct 12, 2026 •

Copy link
Copy Markdown

Summary

  • seat_switch_to_user used create_user_session without a NULL check, causing GLib assertions when the session cannot be created (e.g. unknown user / missing session config).
  • Honor the optional session name from dm-tool switch-to-user USER [SESSION].
  • Add test-switch-to-user-unknown regression coverage.

Closes: #431

create_user_session can return NULL (unknown user / missing session).
Guard that path and honor an explicit session name from dm-tool.

Closes: ubuntu#431
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.

dm-tool switch-to-user myuser fails with NULL pointer error if myuser has never logged in via the greeter

1 participant