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

Avatar does not show #14

Closed
jessemillar opened this issue Mar 16, 2017 · 12 comments
Closed

Avatar does not show #14

jessemillar opened this issue Mar 16, 2017 · 12 comments

Comments

@jessemillar
Copy link

jessemillar commented Mar 16, 2017

I've tried the .face method and the /var/lib/AccountsService/users/<youraccountname> method and no avatar shows. Without changes to /var/lib/AccountsService/users/<youraccountname> or making a .face file, the default astronaut image also doesn't show up.

Installed via AUR.

It's a shame because this is easily the prettiest theme available for lightdm.

@NoiSek
Copy link
Owner

NoiSek commented Mar 17, 2017

The actual grabbing of the avatar is handled by LightDM rather than the theme itself, so I don't think that I can really address this if the user itself still functions correctly.

What file format is the avatar that you're trying to use?

Going off of the LightDM documentation it seems possible that it only accepts .png files. (Do also make sure you have accountsservice installed)

@jessemillar
Copy link
Author

jessemillar commented Mar 17, 2017

I'm using a .png in all cases and I do have accountservice installed. Still nothing. If it really is a LightDM problem, is there any way to make your theme smart enough to handle the error by at least displaying the default astronaut? A glitchy, blank circle doesn't look super great.

photo mar 17 8 48 18 am

@NoiSek
Copy link
Owner

NoiSek commented Mar 17, 2017

You should be able to revert to the default astronaut by removing the .face file (or .face.icon) in your home directory and deleting any references to icon in /var/lib/AccountsService/users/<youraccountname>, there's no currently implemented way to override it otherwise. The theme just renders the path that it is given by LightDM.

It would appear that your issue is identical to this person's issue from not too long ago. Based on that, it seems more that there is either a permissions issue or a hardware rendering issue with certain versions of LightDM.

Just for diagnosis:

  • Do you have the same issue when using another theme?
  • Are there any errors within your /var/log/lightdm/seat0-greeter.log ?

All that I can suggest in the meantime is that you upgrade your LightDM version to the latest and try switching the avatar path to rule out permissions issues. The latest version of the theme (released yesterday on the AUR) also allows you to hide the avatar entirely via the settings dialogue if you wished to sidestep the problem entirely.

@carl03q
Copy link

carl03q commented Jul 12, 2017

Solved with moving the image inside the theme folder

@NoiSek NoiSek closed this as completed Nov 12, 2017
@yawpitch
Copy link

This issue was closed with no actual solution except for a brief mention of moving the image inside the "theme" folder ... which theme folder?

I've got exactly the same issue, no obvious permissions problem, no .face file or icon set in accountsservices, accountservices installed ... but the fallback icon doesn't appear, exactly as per trhe above.

@michaelKurowski
Copy link

Same. Could you provide an explaination? @carl03q

@franciscocpg
Copy link

franciscocpg commented Oct 4, 2018

I was having the same problem and solved it by setting the avatar using the mugshot package.

I'm using Antergos Linux with XFCE.

Apparently here is what the mugshot package does (so one can try these steps manually if wish to). Replace $USERNAME by your username:

  • Created the file $HOME/.face with the contents of your avatar image, owner to the current user and mod 644.
  • Created the file /var/lib/AccountsService/icons/$USERNAME with the contents of your avatar image, owner to root and mod 644.
  • Edited the file /var/lib/AccountsService/users/$USERNAME with the following contents:
[User]
Session=xfce
XSession=xfce
Icon=/var/lib/AccountsService/icons/$USERNAME
SystemAccount=false

I'm not sure it there are any additional steps but after using mugshot to change my user avatar it worked.

@codeitlikemiley
Copy link

reason this is happening and not showing an avatar even the default
because the path is wrongly type when you install it on AUR
/var/lib/AccountService --- Missing s
should be
/var/lib/AccountsService

@NoiSek
Copy link
Owner

NoiSek commented Feb 4, 2019

That value isn't set by the theme or by the AUR package as far as I'm aware.

@ghost
Copy link

ghost commented Jun 21, 2019

Personally, I just replaced avatar-background.png with my .face and renamed it.

@moraisaugusto
Copy link

since I installed this theme the default astronaut avatar doesn't t show for me. I tried to save a personal image in $HOME/.face but it doesn't work too.

My solution was save the png directly on /var/lib/AccountsService/icons/ and I had to change the /var/lib/AccountsService/users/$USERNAME file.

[User]
Session=i3
XSession=i3
Icon=/var/lib/AccountsService/icons/$USERNAME.png
SystemAccount=false

This solved the problem for me.

@Alarg
Copy link

Alarg commented May 24, 2020

Just want to contribute:
I'm using KDE Plasma 5. The solution was to just download a JPEG picture, convert it to PNG using Gwenview, and use KDE's User manager to add the avatar. It might work with a JPEG picture but I didn't try it. No other solution including mod 644 and /icons/ and /users/ worked, strangely.

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

9 participants