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

Theme breaks after logout #1

Open
bajidu opened this issue Feb 28, 2017 · 7 comments
Open

Theme breaks after logout #1

bajidu opened this issue Feb 28, 2017 · 7 comments

Comments

@bajidu
Copy link

bajidu commented Feb 28, 2017

First start: everything fine.
Logout: Theme breaks (message that theme is broken and the login boxes are missing).
Using archlinux and got the webkit2-greeter 2.2.3.1 from the AUR. Im using i3 (if that is of any importance). After activating debug mode /var/log/lightdm/seat0-greeter.log tells me: file:///usr/share/lightdm-webkit/themes/glitchdm/js/main.js:1:30: CONSOLE ERROR ReferenceError: Can't find variable: lightdm. Any idea what I might have done wrong?

I'm pretty new to Linux so if im missing anything let me know!

@bajidu bajidu closed this as completed Feb 28, 2017
@bryanbecker
Copy link
Owner

I see you closed this issue? Did you end up finding the problem?

@bajidu
Copy link
Author

bajidu commented Mar 1, 2017 via email

@bryanbecker
Copy link
Owner

If you know CSS and HTML, you can edit this super easily (bonus points for javascript).

If you just want to remove the entire username field (so there is only a password field, it's a pretty simple change)

I just pushed a commit that makes it slightly easier to do this by adding an ID attribute to the password and username fields.

Now just open index.html and edit the CSS for #usernameField and change from display: block; to display: none; here: https://github.com/bryanbecker/glitchdm/blob/master/index.html#L42-L44

@bryanbecker
Copy link
Owner

By the way, is this your issue? Antergos/web-greeter#109

@bajidu
Copy link
Author

bajidu commented Mar 2, 2017 via email

@bajidu
Copy link
Author

bajidu commented Mar 14, 2017

I think I found the problem. The way main.js tries to access sessions is old and not used by newer versions of the greeter (check out mock.js in the _venders/js). So obviously there is no object "lightdm" to get any session from.

EDIT: Don't worry, I know its not your code in main.js anyway; Just so you know that the new version of mock.js of the greeter seems to vary quite a bit from the one in this project (and musfealla). I don't know if that is actually causing the problem or if themes should be self sufficient with their javascripts.
Anyway thanks for the theme and all the help again!

@bajidu bajidu reopened this Mar 14, 2017
@bryanbecker
Copy link
Owner

Thanks for the tip!

When I have a chance this week I'll look into updating the main.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants