Skip to content
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

[bug] window.lightdm.show_message._emit is not a function #7

Closed
Dzordzu opened this issue Sep 16, 2022 · 9 comments
Closed

[bug] window.lightdm.show_message._emit is not a function #7

Dzordzu opened this issue Sep 16, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@Dzordzu
Copy link

Dzordzu commented Sep 16, 2022

@Dzordzu
Copy link
Author

Dzordzu commented Sep 16, 2022

DevTools listening on ws://127.0.0.1:12345/devtools/browser/30d2e57b-d0cf-4d79-8121-02922311e840
2022-09-16 10:02:21 [ DEBUG ] browser - browser.py:280 : _initialize_devtools | DevTools initialized
2022-09-16 10:02:21 [ DEBUG ] browser - browser.py:250 : init | Browser Window created
2022-09-16 10:02:21 [ DEBUG ] Greeter - Greeter.py:116 : __init__ | LightDM API connected
2022-09-16 10:02:21 [ DEBUG ] browser - browser.py:474 : load_theme | Theme loaded
2022-09-16 10:02:21 [ DEBUG ] browser - browser.py:171 : show | Window is ready
2022-09-16 10:02:21 [ DEBUG ] browser - browser.py:175 : run | Web Greeter started
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
2022-09-16 10:02:32 [ ERROR ] web-greeter://app//usr/share/web-greeter/themes/neon/bundle.js 1: Uncaught TypeError: window.lightdm.show_message._emit is not a function
2022-09-16 10:02:33 [ DEBUG ] browser - browser.py:474 : load_theme | Theme loaded
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

@hertg
Copy link
Owner

hertg commented Sep 16, 2022

Did you find the bug because you were experiencing issues? Did the error cause the greeter to crash or how did it affect the login process?

Can you check whether the problem also occurs with the latest web-greeter v3.5.1

Thank you in advance.

@hertg hertg added the bug Something isn't working label Sep 16, 2022
@Dzordzu
Copy link
Author

Dzordzu commented Sep 16, 2022

It was affecting login process. On the incorrect password I was getting error and option to change to "default" theme.

Can you check whether the problem also occurs with the latest web-greeter v3.5.1

I wish I could, but an official package is failing on arch

Fixed an issue by changing to the nody-greeter

@Dzordzu Dzordzu closed this as completed Sep 16, 2022
@Dzordzu
Copy link
Author

Dzordzu commented Sep 16, 2022

@hertg Thanks for your quick response. As soon as I get web-greeter v3.5.1 I inform you about results

@Dzordzu
Copy link
Author

Dzordzu commented Nov 25, 2022

Okey. I've managed to update web-greeter. But the issue persists. @hertg maybe you should replace web-greeter with nody-greeter in the readme? As I've seen in other threads web-greeter is quite problematic

@hertg
Copy link
Owner

hertg commented Nov 25, 2022

I also prefer nody-greeter myself, but I'm unsure what project to prominently link, because web-greeter is the most widely used AFAIK. I run web-greeter on my work laptop and nody-greeter on my personal machine, just to make sure I'd notice a regression, and the theme worked on both fine so far.

Also I don't know what @JezerM's intentions are in terms of supporting web-greeter / nody-greeter / sea-greeter. I'm pinging them so they have an opportunity to chime in on that. It seems like they are consistently updating all of them simultaneously, but I don't know if that may become too much in the long-term, and maybe one or two of the projects may be abandoned sometime in the future to focus on a single one? That's just wild guesses, but I had this uncertainty in my mind for a while now.

Okey. I've managed to update web-greeter. But the issue persists. @hertg maybe you should replace web-greeter with nody-greeter in the readme? As I've seen in other threads web-greeter is quite problematic

I'm currently linking both, web-greeter and nody-greeter in the README. Maybe I should also link both at the top. Could you link some of those threads that say that web-greeter is "problematic"?

@JezerM
Copy link

JezerM commented Nov 25, 2022

Also I don't know what @JezerM's intentions are in terms of supporting web-greeter / nody-greeter / sea-greeter.

Well, I'm thinking on maintaining all three for as long as I'm alive or as long as I want. They should be interchangeable with each other, specially with web-greeter and nody-greeter. sea-greeter is still in development (until I got into vacations to finish it), so it's not recommended to be used yet.

maybe one or two of the projects may be abandoned sometime in the future to focus on a single one?

Perhaps, web-greeter is hurting me with PyQt5 xd But currently, they will all be maintained.

Also, about this issue, the _emit method is available only in nody-greeter, and it's not documented neither intended for use within themes. It's an internal method, so @herg, you shouldn't use it.

@hertg hertg reopened this Nov 26, 2022
@hertg
Copy link
Owner

hertg commented Nov 26, 2022

Hey @JezerM, great to hear from you!

Your intentions to support all three as long as possible is very generous, thank you for the continuation of the project(s). Do you have a preference which of the two I should link more prominently in my README?

Also, about this issue, the _emit method is available only in nody-greeter, and it's not documented neither intended for use within themes.

Thank you for that insight, I will change that. The underscore prefix should have probably tipped me off earlier 😉

@hertg hertg closed this as completed in aa68ef9 Nov 26, 2022
@JezerM
Copy link

JezerM commented Nov 26, 2022

Do you have a preference which of the two I should link more prominently in my README?

Not really. web-greeter is the most popular, so it could be a great option. However, I think nody-greeter is better designed and more robust. Choose the one you prefer~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants