JezerM / nody-greeter

LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js
https://web-greeter-page.vercel.app
GNU General Public License v3.0
125 stars 8 forks source link

Error while starting - nody-greeter --debug #9

Closed gitneeraj closed 2 years ago

gitneeraj commented 2 years ago

Environment

Bug description

All the build steps work fine but running nody-greeter --debug throws below error

Steps to reproduce

nody-greeter --debug throws erros

Expected behavior

Should open the greeter with specified theme

Screenshots

nody-greeter-issue

JezerM commented 2 years ago

According to the error message, libffi.so.8 couldn't be found, so maybe libffi is not installed/upgraded. Or perhaps, pkg-config can't find it inside the PKG_CONFIG_PATH variable, or pkg-config is not installed.

So, you could try to install libffi (if not installed). Then, check if it does exists with pkg-config --exists libffi; if it doesn't, try to find libffi.so.8 in all your system, though it should be inside /usr/lib/ (or its subdirectories), and add the directory where you found it to the PKG_CONFIG_PATH variable (though it should be globally).

gitneeraj commented 2 years ago

Well, installed this on my main Arch machine instead of in VirtualBox and it worked! There were some hiccups but I managed to troubleshoot them(one was on the step npm run rebuild). I am the maintainer of the theme called Reactive https://github.com/gitneeraj/lightdm-webkit2-theme-reactive and it works with nody-greeter(at least at a glance) without any issues so far. I have only one question, how do I Inspect Element when on debug mode is set to True? (`nody-greeter --debug).

Thanks for making nody-greeter. I always wanted chromium instead of webkit and I LOVE node.js

JezerM commented 2 years ago

Glad it worked!

To open dev tools, you can press Ctrl+Shift+I, or right click to open context menu and click on inspect element.

gitneeraj commented 2 years ago

That's the thing, its not working for me inside the debug window when I start with 'nody-greeter --debug' neither with 'Ctrl+Shift+I'

JezerM commented 2 years ago

Oh, I noticed the context menu is not opening... However, if Ctrl+Shift+I does not work, you should be able to open dev tools with the menu bar at top: View -> Toggle Developer Tools

Screenshot_2022-01-02-38_1366x768

gitneeraj commented 2 years ago

Alright, somehow I missed noticing that menu bar. Thanks that works! Another question that I am curious about to know and then you can mark this issue closed - I see you use web-greeter:// protocol which is nice but why it starts at /app/<theme-location and why not just the <theme-location (that is from /usr/..)? nody-greeter-q

JezerM commented 2 years ago

The app section is for correction purposes, as it acts like host and hostname. Without it, the first "element" in the path would be used for the host/hostname, and so the path would be web-greeter://usr/usr/share/web-greeter/themes/reactive/.index.html; this looks weird and sometimes can create issues when handling with other paths, like web-greeter://usr/etc/something or web-greeter://usr/tmp/something. Even if this path is replaced with web-greeter://usr/share/path/to/theme, usr/ is still the hostname, so it would check for /share/path/to/theme instead of /usr/share/path/to/theme and won't show the theme.