I am working on my hobby project for creating a theme for lightdm webkit2. I have choosen react framework since I am very comfortable with it. Here is the repo link https://github.com/gitneeraj/reactive/tree/feature/dist (checkout branch feature/dist
). With some adjustments(mentioned below), I can get to see the HTML loaded fine as greeter on Display Manager. My problem is when I got a route that has images in the page, then those images does not load even if I have it bundled in. Same applies for any custom font files. Below are the steps to reproduce the issue -
Before you start, make sure you are testing this on a virtual machine. I recommend Arch Linux(because thats what I use) with lightdm and lightdm-webkit2-greeter packages installed and confirgured correctly.
npm i
to install depsnpm start
to see all works fine on browsernpm run build
to build the bundle. This will spit out reactive directorywebkit_theme
variable to theme name reactive
. Like so, webkit_theme = reactive
I have found solution for this as its related to how you build your project for production. Keeping in mind that Linux treats slash (/) as root, we need to use absolute path from where the theme will be installed to.