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 does not loads on arch #191

Open
Mega31 opened this issue Dec 17, 2022 · 4 comments
Open

theme does not loads on arch #191

Mega31 opened this issue Dec 17, 2022 · 4 comments

Comments

@Mega31
Copy link

Mega31 commented Dec 17, 2022

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
Copy link

Same issue

@usmcamp0811
Copy link

usmcamp0811 commented Mar 26, 2023

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
Copy link

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
Copy link

devCote commented Aug 4, 2023

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

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

5 participants