JezerM / sea-greeter

LightDM greeter made with WebKit2GTK
https://web-greeter-page.vercel.app
GNU General Public License v3.0
20 stars 1 forks source link

Question about themes #1

Closed Limones-07 closed 2 years ago

Limones-07 commented 2 years ago

It isn't an issue, it's a question. I'm searching for alternatives for webkit2-greeter, found this one, but I didn't found any themes on the web (💀) so, can we use webkit2-greeter themes on this greeter?

JezerM commented 2 years ago

Yeah, you can use existing webkit2-greeter in sea-greeter, as well as in web-greeter and nody-greeter. However, lots of these themes are using a deprecated API by lightdm-webkit2-greeter which is currently removed by this greeter, so they may not work.

Though, you can see web-greeter-page, or here: https://jezerm.github.io/web-greeter-page/themes, where I collect all themes that currently works with my own web based greeters. There may be other themes that could work but that I have not seen~

If a theme doesn't work, you can either submit an issue to their author to fix it or submit an issue to web-greeter-page so I could try to fix it by myself :D

Limones-07 commented 2 years ago

Yeah, you can use existing webkit2-greeter in sea-greeter, as well as in web-greeter and nody-greeter. However, lots of these themes are using a deprecated API by lightdm-webkit2-greeter which is currently removed by this greeter, so they may not work.

Though, you can see web-greeter-page, or here: https://jezerm.github.io/web-greeter-page/themes, where I collect all themes that currently works with my own web based greeters. There may be other themes that could work but that I have not seen~

If a theme doesn't work, you can either submit an issue to their author to fix it or submit an issue to web-greeter-page so I could try to fix it by myself :D

Thank you! I'm about to install it then :)

Limones-07 commented 2 years ago

Yo, another question. On the lightdm.conf file, what should be the greeter-session value?

JezerM commented 2 years ago

The name of the greeter:

Limones-07 commented 2 years ago

Hey! Sorry for the annoyance, but I have another problem. The Litarvan theme that is in your website (this one: https://github.com/Litarvan/lightdm-webkit-theme-litarvan) isn't working, neither with nody-greeter or sea-greeter. On nody-greeter, it pops up an error message saying about a TypeError: lightdm.language.toLowerCase isn't a function on chunk base js file (coudn't take a screenshot). On sea-greeter, it just enters on a loop, with the blinking cursor on the top of the screen and black to gray-ish screen, like it's about to load the theme. To get out, I need to power off the computer and use the kernel parameters to boot with multi-user.target, so I can go back to light-gtk-greeter. I coudn't find any log files (I don't even know where to search lol). If you can help, I would appreciate it so much!

JezerM commented 2 years ago

Are you using the 3.2.0 release or the master version? Only the master version works with web-greeter, nody-greeter and sea-greeter, as I made some fixes after the 3.2.0 release was made.

JezerM commented 2 years ago

Also, you can find the logs at /var/log/lightdm/. The seat0-greeter.log file contains the greeter log, whether it is lightdm-gtk-greeter or sea-greeter.

Limones-07 commented 2 years ago

Are you using the 3.2.0 release or the master version? Only the master version works with web-greeter, nody-greeter and sea-greeter, as I made some fixes after the 3.2.0 release was made.

I'm not really sure... I'm cloning and building it again, with the master branch selected, so I can test.

Also, you can find the logs at /var/log/lightdm/. The seat0-greeter.log file contains the greeter log, whether it is lightdm-gtk-greeter or sea-greeter.

Sea-greeter log file: http://0x0.st/o4m5.txt

Limones-07 commented 2 years ago

Update: It worked. With two errors, but it worked, I was able to log in. This time I took photos, as I don't have scrot running on LightDM. The first error was right when it loaded: a "An error ocurred. Do you want to change to default theme? (gruvbox) file:///usr/share/web-greeter/themes/litarvan/img/background.b9890328.png O: Failed to load resource: Error opening file /usr/share/web-greeter/themes/litarvan/img/background.b9890328.png: No such file or directory."

Second error: b "An error ocurred. Do you want to change to default theme? (gruvbox) file:///home/limones/.face O: Failed to load resource: Error opening file: /home/limones/.face: Permission denied." I don't have a .face file...

I'm gonna try to see what's going on and I'm going to tell you about anything that happens.

JezerM commented 2 years ago

Nice!

The first error shows that Litarvan theme tried to load a background image, but it wasn't loaded. Perhaps, it was not copied when installing, or it is an error in Litarvan themes' code. I'd suggest to ignore it and select another background.

The second one is common. It is due permissions as the error says, the lightdm user simply doesn't own the .face file neither they have the permission to open it. So, I'd recommend to put your image file at /var/lib/AccountsService/icons/$USER.png and edit your accounts-service file at /var/lib/AccountsService/users/$USER to set your icon. You can see more about it at https://wiki.archlinux.org/title/LightDM#Changing_your_avatar

Limones-07 commented 2 years ago

Nice!

The first error shows that Litarvan theme tried to load a background image, but it wasn't loaded. Perhaps, it was not copied when installing, or it is an error in Litarvan themes' code. I'd suggest to ignore it and select another background.

The second one is common. It is due permissions as the error says, the lightdm user simply doesn't own the .face file neither they have the permission to open it. So, I'd recommend to put your image file at /var/lib/AccountsService/icons/$USER.png and edit your accounts-service file at /var/lib/AccountsService/users/$USER to set your icon. You can see more about it at https://wiki.archlinux.org/title/LightDM#Changing_your_avatar

It worked!! Thank you very much, JezerM!! Good luck on the sea-greeter development. :)