[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#856195: sddm: /usr/share/sddm/faces/username.face.icon is ignored



Package: sddm
Version: 0.14.0-2
Bug#856195

I solved by downloading the source package sddm, edited the file “sddm-0.14.0/src/greeter/UserModel.cpp” and applied these changes:
...
const QString facesDir = mainConfig.Theme.FacesDir.get();
-   const QString defaultFace = QStringLiteral("file://%1/.face.icon").arg(facesDir);
+   const QString defaultFace = QStringLiteral("%1/.face.icon").arg(facesDir);
...
// search for face icon
user->icon = defaultFace;

+   QString userFace = QStringLiteral("%1/.face.icon").arg(user->homeDir);
+   if (QFile::exists(userFace))
+         user->icon = userFace;
...


and compiled with:
cd sddm-0.14.0
debuild -i -us -uc -b -d
cd ..
dpkg -i sddm_0.14.0-2_amd64.deb
apt-mark hold sddm
systemctl daemon-reload
systemctl restart sddm

After restart the service, the icons have reappeared.

Thanks,
Anthony


Reply to: