[Bug] login fails silently when .profile contains invalid or failing shell code #871
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pre-requisites
Ly version
1.3.0-dev.19+816be74
Observed behavior
if the users
~/.profilecontains a command that errors, ly fails the login silently.the login screen succeeds, briefly flashes, and returns to login screen again with no visible error and no logs about the error (i dont think it sees it as an error)
in my case, i previously uninstalled an application but still had this:
which fails because the file doesnt exist
Expected behavior
If
.profilefails to execute:ly should show an authentication/session error, or
log an error message that the shell profile failed to run
silent failure makes it extremely hard to diagnose
OS + Desktop environment/Window manager
Arch Linux / Niri (de/wm doesnt matter in this case)
Steps to reproduce
add invalid shell code to
~/.profile, for example:log out
try logging in through ly to that user
login will instantly fail with no error message
Relevant logs
Additional information
session log is empty
@dragsbruh "Logged out" essentially means Ly did not retrieve any error, and it's likely that it'll stay that way. After a session is launched, there's no way for Ly to retrieve an error if whatever launched the session didn't return one. In this case, it's likely the shell silently fails, and I don't think there's much I can do about it.
i see thats fair then, im closing the issue