Skip to content
New issue

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

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

Already on GitHub? # to your account

check if $XAUTHORITY is set #220

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

Conversation

h-leth
Copy link
Contributor

@h-leth h-leth commented Jan 7, 2025

Solves #219

TO DO:
  • Need to make a new Error type
  • Should probably change these lines too, no need to set the environment variable again if its already set?

lemurs/src/post_login/x.rs

Lines 121 to 122 in 1d4be7d

let xauth_path = xauth_path.to_str().ok_or(XSetupError::InvalidUTF8Path)?;
process_env.set("XAUTHORITY", xauth_path);

@h-leth h-leth changed the title check if is $XAUTHORITY set check if $XAUTHORITY is set Jan 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant