stylix icon indicating copy to clipboard operation
stylix copied to clipboard

kscreenlocker not updating

Open kr-nn opened this issue 1 year ago • 3 comments

I noticed that kscreenlocker does not update even past reboots/logouts. I have to manually update my kscreenlocker wallpaper for it to update.

kr-nn avatar Aug 29 '24 22:08 kr-nn

I find this simple function is enough to update kscreenlocker:

genTheme = wallpaper: { # wallpaper is a wallpaper pkg (path or pkgs.fetchurl) can likely be inherited from stylix.image
  home.file.".config/kscreenlockerrc".text = ''
    [Greeter]
    Wallpaper=org.kde.image
    WallpaperPlugin=org.kde.image
    Image=file://${wallpaper}
  '';
};

kr-nn avatar Aug 29 '24 23:08 kr-nn

Feel free to submit a PR.

trueNAHO avatar Aug 30 '24 15:08 trueNAHO

The wallpaper is changed by running plasma-apply-wallpaperimage here - I would expect that to do the same thing as changing the wallpaper through the settings menu.

If not, then including kscreenlockerrc in configPackage should be enough to fix this, although I think that would still require logging out and back in for it to be applied. Note that makeImmutable is required for the settings there to override what you have in your home directory.

danth avatar Aug 31 '24 18:08 danth