rda0 / web-greeter-theme-luminosity

Customizable LightDM Web Greeter theme
GNU General Public License v3.0
11 stars 3 forks source link

Testing changes to theme? #2

Open jat255 opened 2 years ago

jat255 commented 2 years ago

Thanks for this great theme.

I have to customize it a bit for my needs, and I'm struggling figuring out how to test the theme without doing a full restart of LightDM (which puts a damper in the iteration process).

I see there's some code mock.js, but when I load index.html in my browser, nothing happens, presumably because there's no GreeterReady event fired (since there's no greeter...). I tried also manually calling initGreeter(), but that has errors as well, since the lightdm.xxxxx.connect() lines don't work.

How do you test changes locally when you're developing this theme? I may be dense, but I don't see any sort of preview option for web-greeter.

Thanks!

rda0 commented 1 year ago

Sorry for my late reply. mock.js is an old file from where I forked the theme. I should have removed it. You can start web-greeter from within your session and in debug mode: https://github.com/JezerM/web-greeter#debugging