Login screen: Rewritten from scratch
I've rewritten the login screen with a few files and take a bit of reference from the current one.
Some elements need to be worked/usable (checked for done):
- [x] Power menu
- [x] Session mode
- [x] Brightness controller
- [x] Battery indicator (no dialog)
- [x] Keyboard layouts
- [x] Time and date
- [x] Password reset feature/information
- [x] Time format option
and some tests:
- [x] Login to the session
- [x] Switch to another session
- [x] Power menu functionality
- [x] Keyboard layout
- [x] Clock, battery, and brightness Indicators
- [ ] Brightness controller*
*Some testers if you have a laptop, please test it for brightness controller (DO NOT USE VM)
NOTE: Please do some tests before merging this PR and use web-greeter (instead of lightdm-webkit2-greeter) to test the login screen
How to test:
- Install lightdm and web-greeter package
- Copy this theme to /usr/share/web-greeter/themes
- Edit the /etc/ligthdm/lightdm.conf:
This will set the greeter-session(default greeter session) toweb-greeter - Edit the /etc/lightdm/lightdm-webkit2-greeter.conf:
This will set the webkit_theme(default greeter theme) to this themeavdanosand also set thesafe_modetofalseto prevent blocking API requests (but for now, the API won't be working, so it's optional) - Then, Restart your computer
These items will be fixed/added/checked for the following commits.
Will test this now. Can I ask which distro/system you are testing this on, and which parameters?
Will test this now. Can I ask which distro/system you are testing this on, and which parameters?
I'm using Ubuntu 22.04 for main system and Arch Linux (latest) as testing machine (same as tester using)
Power menu and keyboard layout functions work, everything else doesn't. When trying to log into a session, all fields and buttons get greyed out and the session hangs. Nothing happens. It causes a failure popup, the same as when you try to use the indicators for Brightness, Power and other things as well as switching sessions. I have attached the greeter log.
Power menu and keyboard layout functions work, everything else doesn't. When trying to log into a session, all fields and buttons get greyed out and the session hangs. Nothing happens. It causes a failure popup, the same as when you try to use the indicators for Brightness, Power and other things as well as switching sessions. I have attached the greeter log.
I've fixed some errors, you can test it again.
Just a slight nitpick: why do we have 2 folders for the same thing?
avdanosLogin.log New log file for you! Successful login still hangs with an error.
Also, the API on my server has been updated: inputting an incorrect key on the login screen now returns a server issue, when it should return an incorrect API key message. Most likely due to line 149 of auth.js:
if (request.status !== 200) return this.failed(LoginFailedIssue.SERVER);
Incorrect API key now returns 401 error code in request.status, as suggested by sammy, as well as responding 401 in the response as well. Apologies for the pain.
Edit: the UI fix for the battery and brightness indicator work, they are no longer an issue. They are greyed out on my PC, as they should be; not tested on my laptop yet however so don't assume this is 100% working yet. Session switching still fails, it shows a blank box when you click it.
Just a slight nitpick: why do we have 2 folders for the same thing?
It's for a backup/reference. I actually to replace with the original one, but I'm afraid if the original was replaced.
avdanosLogin.log New log file for you! Successful login still hangs with an error.
Also, the API on my server has been updated: inputting an incorrect key on the login screen now returns a server issue, when it should return an incorrect API key message. Most likely due to line 149 of auth.js:
if (request.status !== 200) return this.failed(LoginFailedIssue.SERVER);Incorrect API key now returns 405 error code in
request.status, as suggested by sammy, as well as responding405in the response as well. Apologies for the pain.Edit: the UI fix for the battery and brightness indicator work, they are no longer an issue. They are greyed out on my PC, as they should be; not tested on my laptop yet however so don't assume this is 100% working yet. Session switching still fails, it shows a blank box when you click it.
can you show me your updated auth works and returned status?
avdanosLogin.log New log file for you! Successful login still hangs with an error. Also, the API on my server has been updated: inputting an incorrect key on the login screen now returns a server issue, when it should return an incorrect API key message. Most likely due to line 149 of auth.js:
if (request.status !== 200) return this.failed(LoginFailedIssue.SERVER);Incorrect API key now returns 405 error code inrequest.status, as suggested by sammy, as well as responding405in the response as well. Apologies for the pain. Edit: the UI fix for the battery and brightness indicator work, they are no longer an issue. They are greyed out on my PC, as they should be; not tested on my laptop yet however so don't assume this is 100% working yet. Session switching still fails, it shows a blank box when you click it.can you show me your updated auth works and returned status?
I haven't modified the auth.js file at all, I updated it server-side.

- Empty fields returns status 400
- Invalid key returns status 401
- Invalid credentials returns status 403
- Successful login returns status 200
avdanosLogin.log New log file for you! Successful login still hangs with an error.
Also, the API on my server has been updated: inputting an incorrect key on the login screen now returns a server issue, when it should return an incorrect API key message. Most likely due to line 149 of auth.js:
if (request.status !== 200) return this.failed(LoginFailedIssue.SERVER);Incorrect API key now returns 401 error code in
request.status, as suggested by sammy, as well as responding401in the response as well. Apologies for the pain.Edit: the UI fix for the battery and brightness indicator work, they are no longer an issue. They are greyed out on my PC, as they should be; not tested on my laptop yet however so don't assume this is 100% working yet. Session switching still fails, it shows a blank box when you click it.
How about now?
avdanosLogin.log Successful login hangs again... switching sessions menu now works though! Battery and brightness indicator needs to be disabled on PCs and machines that do not support it, otherwise they also cause errors to show up. I am sure this can be done somehow.
Suggestion: user-profile.png (the profile picture) should sync with the one you set in the OS itself, and there should be a way to change the background without command line.
avdanosLogin.log Successful login hangs again... switching sessions menu now works though! Battery and brightness indicator needs to be disabled on PCs and machines that do not support it, otherwise they also cause errors to show up. I am sure this can be done somehow.
It is fixed, now you can try again. The battery and brightness for unsupported devices were already disabled programmatically and cannot be hidden because menus weren't reallocated properly.
@AdvendraDeswanta should this be merged?
@AdvendraDeswanta should this be merged?
May be. Because enigmaPr0ject.tech authentication API does not work, why not use local authentication (standard login)?
btw i think u have to use the dev branch not main
btw i think u have to use the dev branch not main
It already used the dev branch not main.
it seems like you are trying to merge from your repo:dev to this repo:main
For Future Devs:
And the testing needs to be done on Arch our testers usually install KDE first Copied from DMs
install my custom login screen (https://github.com/Avdan-OS/Desktop-Environment/pull/20):
- Install lightdm and lightdm-webkit2-greeter package
- Copy theme to /usr/share/lightdm-webkit/themes
- Edit the /etc/ligthdm/lightdm.conf:
- Edit the /etc/lightdm/lightdm-webkit2-greeter.conf:
lightdm.conf, it's to set the lightdm engine (we use lightdm-webkit2-greeter) and on lightdm-webkit2-greeter.conf, it's to set the theme (we use avdanos theme)
don't forget to set secure_mode to false on lightdm-webkit2-greeter.conf
@AdvendraDeswanta should this be merged?
May be. Because enigmaPr0ject.tech authentication API does not work, why not use local authentication (standard login)?
Yep disable the API login system (not sure why it was used in first place) and replace with normal local authentication