Litarvan / lightdm-webkit-theme-litarvan

Litarvan's LightDM HTML Theme
BSD 3-Clause "New" or "Revised" License
707 stars 73 forks source link

theme does not loads on arch #191

Open Mega31 opened 1 year ago

Mega31 commented 1 year ago

lightdm-webkit2-greeter --test-mode output:


** (WebKitWebProcess:46121): CRITICAL **: 12:57:17.671: lightdm_language_get_name: assertion 'LIGHTDM_IS_LANGUAGE (language)' failed
file:///usr/share/lightdm-webkit/themes/litarvan/js/chunk-vendors.cc4c1bca.js:7:12046: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'C[N()][e]')
CONSOLE OTHER WARN The resource file:///usr/share/lightdm-webkit/themes/litarvan/css/app.6fe6ebad.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
CONSOLE OTHER WARN The resource file:///usr/share/lightdm-webkit/themes/litarvan/js/app.8fe78afb.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
CONSOLE OTHER WARN The resource file:///usr/share/lightdm-webkit/themes/litarvan/js/chunk-vendors.cc4c1bca.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
vikigenius commented 1 year ago

Same issue

usmcamp0811 commented 1 year ago

I can make it work if I use the lightdm-webkit-theme-litarvan-git version from the AUR but recently have started to have another issue.

An error was detected in the current theme that could interfere with the system login process.

EDIT: Just downgraded to lightdm-webkit-theme-litarvan-3.0.0-1-any and it seems to work...

FallenFoil commented 1 year ago

Hi there! I have been messing around with this problem and developed a temporary (somewhat ugly) fix. In the file /usr/share/lightdm-webkit/themes/litarvan/js/chunk-vendors.XXXXXXXX.js, replace the function called $r function $r(t){var e=t&&t.toString().match(Or);return e?e[1]:""}

with

function $r(t){var e=t&&typeof (t.toString())==='string'&&!!t.toString().match&&t.toString().match(Or);return e?e[1]:""}

Basically, Im adding two new conditions:

  1. if the t.toString() outputs a string. I had a case where it would output a function
  2. And if the function match exists in that given string. I also had a case where the string wouldn't have the match method

This is not a good fix, but it lets you have the normal login behavior, at least on the user side. I will continue investigating this problem, and so far, it doesn't seem like the problem is necessary in Litarvan's code.

devCote commented 1 year ago

Hi there! I have been messing around with this problem and developed a temporary (somewhat ugly) fix. In the file /usr/share/lightdm-webkit/themes/litarvan/js/chunk-vendors.XXXXXXXX.js, replace the function called $r function $r(t){var e=t&&t.toString().match(Or);return e?e[1]:""}

with

function $r(t){var e=t&&typeof (t.toString())==='string'&&!!t.toString().match&&t.toString().match(Or);return e?e[1]:""}

Basically, Im adding two new conditions:

  1. if the t.toString() outputs a string. I had a case where it would output a function
  2. And if the function match exists in that given string. I also had a case where the string wouldn't have the match method

This is not a good fix, but it lets you have the normal login behavior, at least on the user side. I will continue investigating this problem, and so far, it doesn't seem like the problem is necessary in Litarvan's code.

Thanks for help, my chunk has different arguments in braces but I did exactly the same with my arguments and it worked