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

Doesn't work on Arch #111

Open
jakec-dev opened this issue Jan 20, 2022 · 5 comments
Open

Doesn't work on Arch #111

jakec-dev opened this issue Jan 20, 2022 · 5 comments

Comments

@jakec-dev
Copy link

Expected behavior
Following instructions to change avatar and wallpaper should work. Settings should be accessible by moving mouse to bottom-left of the screen.

Actual behavior
Changing the avatar and wallpapers leads to an error message along the lines of "Failed to load, fallback to default theme?". Hovering mouse in the bottom-left corner (or any corner) does not bring up the settings menu.

Steps To Reproduce

  1. Install via AUR
  2. Change avatar and wallpaper according to instructions
  3. Chmod 777 the avatar, wallpaper and directory they are in (just to eliminate permissions errors)
  4. Restart
  5. Press 'cancel' or 'fallback to default' when the error message pops up. Attempt to access settings by moving mouse to the bottom left.

If relevant, include logs from the following command:
sudo tail /var/log/lightdm/seat0-greeter.log

CONSOLE LOG [ERROR] theme_utils.dirlist(): Error opening directory “/home/jake/Pictures/wallpapers”: Permission denied

After this, I ran sudo chmod 777 -R /home/jake/Pictures/wallpapers and rebooted. Same error still applies. Confirmed that permissions are -rwxrwxrwx for all wallpaper image files and drwxrwxrwx for the directory itself.

@JezerM
Copy link

JezerM commented Jan 22, 2022

lightdm-webkit2-greeter and LightDM itself doesn't allow nor recommend to "inspect" the home folder, no matter you change the permissions. You need to change the default background_images path to one that isn't inside the /home/ directory. Therefore, you could create a directory at /usr/share/backgrounds/aether (or wherever you want), copy your desired wallpapers to there, and set background_images to your desired path.

@crazyc4t
Copy link

crazyc4t commented Feb 5, 2022

I have the same problem with the error message "fallback to default" but instead am having permission issues on /var/lib/lightdm-data and /run/lightdm/root/

I don't think that is a lightdm problem since lightdm runs fine, it just the theme that breaks, running on Arch, installed the theme via AUR and can confirm the permissions are granted for the lightdm user.
debug: lightdm --test-mode --debug

WARNING: Error reading existing Xauthority: Failed to open file ?/run/lightdm/root/:1?: Permission denied

WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-data': Permission denied

WARNING: Could not create user data directory /var/lib/lightdm-data/said: Error creating directory /var/lib/lightdm-data/said: Permission denied

should I just chmod 777 the directories as @jakec-dev said? sounds as a solution but not security-centered tho...

Edit: used the debug method in the README, and got this problem:
** (lightdm-webkit2-greeter:1155): WARNING **: 12:07:03.372: [ERROR] :: A problem was detected with the current theme. Falling back to default theme... file:///usr/share/lightdm-webkit/themes/simple/index.html:194:10: CONSOLE JS ERROR ReferenceError: Can't find variable: lightdm

Is like that for other 3 times, it can't find the variable lightdm... so I don't have any idea why, I will read the source code to see if I can debug it myself but am clueless.

@crazyc4t
Copy link

crazyc4t commented Feb 5, 2022

Thanks to @jakec-dev got the theme working with the chmod 777 and with wallpapers and icon as well, the solution to the icon is:

  • Add the icon (png preferred) to /var/lib/AccountsService/icons/
  • Then, edit the config file at /var/lib/AccountsService/users/$USER and add the icon path.

For the wallpapers as @JezerM said, just copy your preferred wallpaper to /usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/wallpapers and change it by clicking the arch icon.
Cheers

@WubzyGD
Copy link

WubzyGD commented Feb 10, 2022

For the wallpapers as @JezerM said, just copy your preferred wallpaper to /usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/wallpapers and change it by clicking the arch icon. Cheers

Do I need to change the background_images wallpaper back to this directory as well?

Nevermind; got it working. Thanks so much!

@crazyc4t
Copy link

crazyc4t commented Jul 4, 2022

Don't worry hope you enjoy g!

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

4 participants