Bug 258769 - x11/plasma5-plasma-desktop: kcm_users doesn't set user avatar as expected
Summary: x11/plasma5-plasma-desktop: kcm_users doesn't set user avatar as expected
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 21:58 UTC by Serge Volkov
Modified: 2022-03-18 20:50 UTC (History)
3 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Volkov 2021-09-28 21:58:34 UTC
I tried using Users in KDE Plasma 5 System Settings. If I choose a user avatar from the gallery, the user avatar is not updated in kickoff, screen locker and login manager (sddm). A similar bug is described here https://bugs.kde.org/show_bug.cgi?id=422177. But I didn't understand if the problem was solved. At least in FreeBSD, it doesn't work.

FreeBSD 12.2-RELEASE-p10 amd64, KDE Plasma 5.22.5, KDE Frameworks 5.86, Qt 5.15.2
Comment 1 Serge Volkov 2021-10-11 08:30:08 UTC
I found a workaround. You need to make a symbolic link in user's home directory.

cd ~
ln -fs /var/db/AccountsService/icons/$LOGNAME .face.icon
Comment 2 Adriaan de Groot freebsd_committer freebsd_triage 2021-10-11 14:23:15 UTC
Can you describe in detail how you change the user avatar? On my system there is no /var/db/AccountsService (or /var/lib/AccountsService, which seems to be the Linux path for the same).

The "Users" module in System Settings does not seem to be the right one (it shows me an empty list and a "John Doe" user)
Comment 3 Serge Volkov 2021-10-11 18:36:01 UTC
I don't know how /var/db/AccountsService/icons/ and /var/db/AccountsService/users/ directories were created in my system. I did not create directories myself. I installed the KDE5 a long time ago and am constantly updating it.

I have two accounts in the system: root and User. The "Users" module in System Settings shows me only "User" user. Thus, my list is not empty. If I log in with an root's account (I have it allowed in SDDM), then I can change the avatar in "Users" module in System Settings. Also I can change the avatar by logging in with account User. But this still requires you to know the root's password. Thus, in order to change the avatar, you need to know the root's password.
Comment 4 Serge Volkov 2021-12-12 14:36:02 UTC
I noticed that in order for something to work, the package sysutils/accountsservice must be installed. Previously, this package was installed along with some other package. Now you need to install it yourself.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-03-18 20:11:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8d7f9692bc3a64bdcc473b4f4b3d54a7f73a783f

commit 8d7f9692bc3a64bdcc473b4f4b3d54a7f73a783f
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-03-18 19:41:03 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-03-18 19:41:03 +0000

    x11/plasma5-plasma-workspace: add missing runtime dependency

    - sysutils/accountsservice is required to acquire account information

    PR:             258769
    Reported by:    Serge Volkov <sv@ulstu.ru>

 x11/plasma5-plasma-workspace/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 6 Tobias C. Berner freebsd_committer freebsd_triage 2022-03-18 20:49:55 UTC
Moin moin 

Fixed now :) -- thanks for the report.


mfg Tobias
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-03-18 20:50:15 UTC
A commit in branch 2022Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5cd901fb5b373d466e07a630d16782bd2951eda6

commit 5cd901fb5b373d466e07a630d16782bd2951eda6
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-03-18 19:41:03 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-03-18 20:49:27 +0000

    x11/plasma5-plasma-workspace: add missing runtime dependency

    - sysutils/accountsservice is required to acquire account information

    PR:             258769
    Reported by:    Serge Volkov <sv@ulstu.ru>

    (cherry picked from commit 8d7f9692bc3a64bdcc473b4f4b3d54a7f73a783f)

 x11/plasma5-plasma-workspace/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)