Skip to content

Conversation

@javalsai
Copy link
Owner

This PR aims to:

For now I'm just organizing the auth.c logic.

I also plan to allow sourcing shell files on startup to completely support all possible env. (e.g. /etc/profile.d/)

also helps with sanitizing the code flow when spawning the child, more
code though
@javalsai javalsai self-assigned this Aug 27, 2025
@javalsai javalsai added the enhancement New feature or request label Aug 27, 2025
@javalsai
Copy link
Owner Author

Just gotta debug why running with valgrind and getting my passwd right SIGPIPES while the same without valgrind doesn' t.

@javalsai
Copy link
Owner Author

javalsai commented Sep 2, 2025

Literally, omfg, syncing session and X server is painful, whytf does X :0 vt1 & disown; (sleep 5; DISPLAY=:0 i3) hang the VT of the VM but (sleep 2; DISPLAY=:0 i3) & disown; X :0 vt1 work T-T. Can't even do this in C if it doesn't make sense in my sh.

leaves a few TODOs:
* error handling
* properly passing VT around
* `wait_for_x_ready`
* allow compile-time overriding `DEFAULT_XORG_DISPLAY` and `XORG_COMMAND`
@javalsai
Copy link
Owner Author

javalsai commented Sep 3, 2025

About the last commit:

  • error handling
  • properly pass VT around
  • wait_for_x_ready
  • allow compile-time overriding DEFAULT_XORG_DISPLAY and XORG_COMMAND

And also:

  • Fix clang issues
  • Use musl compatible headers

@grialion
Copy link
Collaborator

grialion commented Sep 3, 2025

More than half of this PR could've been another one. It isn't really convenient to look through the actual changes when most of the files are just reformatted :(

@javalsai
Copy link
Owner Author

javalsai commented Sep 3, 2025

Sorry I just did it instinctively 😭

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] Xorg sessions proper support

3 participants