Summary: | Automatically copy theme files from ~/.local/share to /var/lib/sddm/.local/share as a part of the sync process | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Nate Graham <nate> |
Component: | kcm_sddm | Assignee: | David Edmundson <kde> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | ad.liu.jin, bugseforuns, filipfila.kde, hsaom, kde, plasma-bugs |
Priority: | NOR | Keywords: | usability |
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nate Graham
2021-12-18 14:52:54 UTC
Creating files under /usr which are not tracked by the distribution package manager is frowned upon as it can create conflicts. It should be copied to sddm's home dir (/var/lib/sddm by default) instead. Oh yeah, that would be fine. *** Bug 479018 has been marked as a duplicate of this bug. *** *** Bug 483113 has been marked as a duplicate of this bug. *** 483113 is about the KDE default Breeze theme, which is not in ~/.local. Not a duplicate. *** Bug 492416 has been marked as a duplicate of this bug. *** *** Bug 494534 has been marked as a duplicate of this bug. *** I steered away from this when working on the sync function because I didn't trust putting unreviewed code in root directories. But if no one objects from a security point of view to copying user files to /var/lib/sddm and chowning them as the sddm user, this is doable. I agree it's not very user-friendly to just tell the user to globally install their theme files. I tested copying the Plasma theme and an icon theme to sddm's directory and upon changing the ownership, the login screen picks up on these themes. Instead of copying whole folders of themes, I suppose a good implementation would be to parse Plasma config files, grab the name of the theme used as a default, locate it in the user's directory, copy it to /var/lib/sddm/ and set permissions. I can look into implementing this, although it might take me some time. Ideally the syncing process would be further upgraded if updates for user-installed themes can be picked up (registering changes in Discover in GHNS), and then automatically synced to SDDM so the user doesn't have to manually do it. This would require password prompts in such actions, but can be defended by saying it wouldn't affect the majority of the users, who presumably use default themes (I don't have any stats for this though). I don't have what it takes to implement that, but I'd be glad to help out any way I can. |