Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/test-driver: Fix wait_for_window() when X is running as non-root #106686

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chkno
Copy link
Member

@chkno chkno commented Dec 11, 2020

Motivation for this change

Make wait_for_window() work when X is running as non-root. (X shouldn't ever be running as root.)

Fixes #106685

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

FYI:
@pbogdan who explained the problem in #37642
@xeji who added allow-root-login in 5f72169
@adisbladis who added XAUTHORITY user-systemd import in 40f402c

@chkno
Copy link
Member Author

chkno commented Dec 11, 2020

Oh, wait, something's wrong: The new sddm-flavor of the new test doesn't pass on master. I now realise I had only tested it on 20.09 before creating this PR. :(

@chkno
Copy link
Member Author

chkno commented Dec 11, 2020

Ok, it's fixed now. I switched from sddm to lightdm as the representative for XAUTHORITY=/home/alice/.Xauthority.

sddm seems to have some unrelated problem on master where it stops the session before it finishes starting up. I don't want to block this wait_for_window() fix on figuring out what's wrong with sddm at the moment.

@stale
Copy link

stale bot commented Jun 10, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 10, 2021
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank marked this pull request as draft March 25, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wait_for_window() only works when running X as root, which is discouraged
2 participants