-
Notifications
You must be signed in to change notification settings - Fork 315
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
[pending] /etc/ly/wsetup.sh exits unsuccessfully with TCSH #602
Comments
I can't seem to reproduce the exception you're getting and I can successfully login on an arch vm into sway. My latest pr should fix the config issue u were having. |
Hi there,
Nothing fancy/that I think should cause this, but I was then unable to sign in with the error mentioned above. |
My latest PR "should" allow you to login. Let me know if the issue still occurs when you can. |
Thanks! |
@Kawaii-Ash I am now successfully seeing my config changes applied to my login screen. IMG_0197.mov |
trim.4F96F924-1501-4289-B34B-1F11F9F36D11.MOV... and here is a video of my attempt to sign in to an unconfigured ly session and start sway. |
It seems like Sway is crashing here (though I may be wrong). Just to confirm, are you able you launch Sway from a TTY? |
Yes, I have no issue opening sway from a tty. I've also verified that ly is looking in the right directory for my .desktop file. |
I could reproduce this in an arch vm only when I didn't have polkit installed. |
That could be it, I'm not sure if I have polkit installed on this system or not. I will check this evening. |
Alternatively, adding my user to the "seat" group and restarting seatd also allows me to launch sway as an alternative to installing polkit. But without doing either, I have the same issue starting sway from a tty when I'm not root. But apparently you have no issue opening sway from a tty. Other than that, I'm not really sure what the issue is. |
It looks like I have polkit installed and running already. Adding myself to the |
If you redirect stderr to a file, like: Then try to login to sway, does the file contain anything? |
Ah yes, wlroots-based WMs like labwc and sway have issues when polkit and D-Bus aren't installed. Check that the latter is installed (it should be, but just to make sure). If that's OK, I recommend redirecting and checking stderr like Ash suggested. If it says anything about the former 2 dependencies (or if it doesn't say anything useful), try prepending this command to the
|
I have both polkit and dbus installed and running. |
That's interesting... so it doesn't work with |
I installed Arch from the official iso, looks like this system was set up in August 2023 so the 2023.08.01 image. I keep my packages up to date, though, so I'm not sure that's super relevant. Sway would've just been installed via Pacman, and ly via this repository and |
Could you edit your config file and change |
This seems to have done it! I do use tcsh and I'm not sure how extensively that block is tested. I notice that it's not checking for |
I guess maybe this should stay open until the repository is updated to fix this. But my personal situation is resolved. |
@amberjennings We're both unable to reproduce your issue with TCSH changed as the default shell for all users. Do you have a custom TCSH configuration perhaps? And, just to make sure (but I can probably guess the result), what's the output of |
|
@amberjennings Well that's awkward, I'm still unable to reproduce the bug. I think it might be easier for you to try to mess with the |
Yeah, I can do that. No promises on timeline as I am quite busy but if you want to assign to me I'll do what I can. |
No pressure! I feel like assigning yourself to an issue you reported is kind of odd though... but I'll edit the title of the issue to reflect its "pending" status. |
I'm attempting to find the source referred to in wsetup.sh (kde-workspace/kdm/kfrontend/genkdmconf.c) and it looks like the kde-workspace repository was shuttered 9 years ago in favor of plasma-workspace, and even then I cannot locate that file. I realize that this is a part of the original C version of ly and not put in place by you, but also, if telling it not to run at all makes the program work, with some more testing, could it be phased out entirely? |
Well, it sources the profile for the logged in user's shell. Yes, it can work just fine without it, however it can be useful if you want to run something specific right before your DE/WM starts. Granted, I don't believe the current shell code for sourcing the logged in user's shell profile is that much useful anymore (or maybe it is, like if that sets up some specific stuff that the DE/WM can use while starting?). With all of that said, you also have to keep in mind that So at the end of the day, I think it's probably best to try and fix the issue at hand, or at least try to find why the script doesn't work with your specific setup. |
Yeah, I can see the use case, I'm just not sure why it's entirely preventing me from starting a desktop session. Just running the script on its own works fine (because all its doing is sourcing environment variables that already exist, aiui). The xsetup script is definitely more integral. /etc/csh.login has some interesting stuff happening: if ( -o /dev/$tty && ${?prompt} ) then
# Console
if ( ! ${?TERM} ) setenv TERM linux
if ( "$TERM" == "unknown" ) setenv TERM linux
# No tset available on SlackWare
if ( -x "`which stty`" ) stty sane cr0 pass8 dec
if ( -x "`which tset`" ) tset -I -Q
unsetenv TERMCAP
settc km yes
endif /etc/csh.cshrc seems mostly uninteresting, but it exists as well. |
Hello,
After the changes implemented in 0.12.0, I was finally able to get the zig rewrite of ly to compile.
I set up the systemd service using the recommended method (
zig build installsystemd
) and made some changes to/etc/ly/config.ini
(enable an animation, set a clock format, and change the masking text from * to -).However, upon a reboot, a few things happened:
exception (no address available)
??:?:?: -x73e4ee88709d in ??? (libc.so.6)
Unwind information for 'libc.so.0x73e4ee88709d' was not available, trace may be incomplete
... displayed atop the ly prompt -- so, I am unable to get to sway or i3 via ly, and I have to switch to a different tty and start it manually.
Additional info:
uname:
Linux my_fqdn 6.8.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 May 2024 17:49:46 +0000 x86_64 GNU/Linux
latest commit hash in my clone of ly:
629749b3832aaec86929794a527c108e5c1c29d1
init system: systemd
desktop environments tested: i3 and sway
If there are any other questions I can answer or things I can test, let me know. Thanks!
The text was updated successfully, but these errors were encountered: