Skip to content

Conversation

@bketelsen
Copy link
Contributor

No description provided.

Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where the xauthority device mount in Igloo containers becomes stale when XWayland restarts and creates a new xauthority file with a different path. The fix adds functionality to detect and update the xauthority device mount on each igloo enter command.

Key changes:

  • Added device management methods to check, retrieve, and update xauthority mounts
  • Integrated xauthority update check into the container enter workflow
  • Added comprehensive unit tests for the new functionality

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
internal/incus/client.go Added RemoveDevice, DeviceExists, GetDeviceSource, and UpdateXauthority methods to handle dynamic xauthority file path changes
internal/incus/client_test.go Added comprehensive unit tests covering UpdateXauthority behavior with no file, existing file, and custom XAUTHORITY paths
cmd/enter.go Integrated UpdateXauthority call before entering container, with non-fatal warning on failure
TODO.md New file documenting known bugs (including the xauthority issue being fixed) and future feature ideas

Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
@bketelsen bketelsen merged commit 5eda33c into main Dec 30, 2025
7 checks passed
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.

2 participants