-
Notifications
You must be signed in to change notification settings - Fork 306
-
Notifications
You must be signed in to change notification settings - Fork 306
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
ly immediately displays "logged out" after entering valid credentials to log into sway #445
Comments
I encountered the same issue some days ago, althouth slighlty different. Sway logged out immediately when I wanted to login to sway. Launching the shell worked. So I then started sway from the command line and got the error that So could it be that ly ignores systemd/user session? As @AnyTimeTraveler mentioned he could launch sway from the command line which is certainly possible if the shell files set |
Yes @the-technat , I also now found out that, when you login into a shell with ly and then type "sway", it shows an error about the lack of the For some reason, sway is fine with the lack of the env var when launched in a TTY, but it's a dealbreaker when launched from a ly shell session. I will try to find time to look into the sway codebase to find out what difference leads to these different codepaths and error messages. Ly does seem to set the runtime dir itself, here so something must be going wrong. |
Update: It suddenly works againI don't know what changed. The result of the command The full |
Okay, now I am really confused. Is there some systemd magic that could cause this? |
I've had to revert to an older commit of ly because of likely the same problem. Starting sway with |
I have found the issue and created a pull request for the fix/workaround #446 |
I found that setting With X session (Xfce) variable is set with first session and all session management buttons are active. After logout new login is run without I've also noticed, that Other missing
Another thing are mentioned by @AnyTimeTraveler problems with session creation. Test VM: Test package for Fedora is available here: https://copr.fedorainfracloud.org/coprs/tofik/ly/ |
Hello, Since some updates, I have the same issue on Arch Linux where I have installed ly-git 0.5.3.r82.g5db09ce-1 from AUR. I can only login shell and it is written I found 2 workaround described below : 1) Set XDG_RUNTIME_DIR manually and use seatdSet XDG_RUNTIME_DIR manually in .bashrc as described in Gentoo Wiki :
Then I still couldn't login to sway from Ly prompt neither from shell by typing So I installed seatd, added my user to seat group and enable/start seatd.service as recommended in Arch Wiki. That make it works and I can login directly to sway from ly prompt. 2) Use previous version i.e.: ly 0.5.3-0Though I don't like the solution (1) above I have found that ly 0.5.3-0 (the version without animations) from AUR works properly without all these trickery. Hopping that we will find a good solution, |
@t0fik and @savanne-kham would you be so kind and test my pull request? |
@AnyTimeTraveler after applying your PR variables was set. Still new session wasn't started. |
I just installed it on a new machine. Can you check if it is installed and could you post the error message you get? |
@AnyTimeTraveler polkit is installed by default in Fedora Xfce spin. I am able to login, even without your patch and session is created properly. Problem starts after you logout and try to login again. Steps to reproduce:
With second and subsequent logins:
What I noticed:
Other tests I did:
None of those changes resolved the issue |
I see. |
Problem
Ly immediately displays "logged out" after entering valid credentials to log into sway.
OS: Up to date ArchLinux as of this post
Ly Version: 0.5.3.r82.g5db09ce-1 from AUR
Steps to reproduce
Service Status
Examining the ly.service in systemd shows the following:
Current Workaround
Conclusion
I suspect that the line "pam_systemd(ly:session): Failed to create session: Connection reset by peer" has something to do with it,
but either my google-fu isn't strong enough or this issue is new, because I can't find anything useful.
I would appreciate suggestions on what to try very much!
The text was updated successfully, but these errors were encountered: