Skip to content

[Bug]: Presets not listed on home-manager based install #184

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

Open
3 of 6 tasks
de-odex opened this issue Feb 18, 2025 · 5 comments
Open
3 of 6 tasks

[Bug]: Presets not listed on home-manager based install #184

de-odex opened this issue Feb 18, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@de-odex
Copy link

de-odex commented Feb 18, 2025

I have:

Install method used:

  • Using Plasma's "Add new widget" (KDE Store)
  • AUR
  • Nix package
  • Manually from the latest source code

Describe the bug
No presets (neither user-made nor built-in)

Steps to reproduce

  1. Install via home-manager
  2. Click on 'Refresh presets'

Observed Result
journalctl -f snippet

 2月 19 03:22:40 yuutenji kioworker[9262]: kf.kio.core.connection: Socket not connected QLocalSocket::PeerClosedError
 2月 19 03:22:40 yuutenji kioworker[9262]: kf.kio.core: An error occurred during write. The worker terminates now.
 2月 19 03:22:40 yuutenji kioworker[9262]: QThreadStorage: Thread 0x14628a0 exited after QThreadStorage 8 destroyed
 2月 19 03:22:40 yuutenji kioworker[9262]: QThreadStorage: Thread 0x14628a0 exited after QThreadStorage 7 destroyed
 2月 19 03:22:40 yuutenji kioworker[9262]: QThreadStorage: Thread 0x14628a0 exited after QThreadStorage 6 destroyed
 2月 19 03:22:40 yuutenji kioworker[9262]: QThreadStorage: Thread 0x14628a0 exited after QThreadStorage 0 destroyed
 2月 19 03:22:41 yuutenji plasmashell[1758]: qml: '/nix/store/zrxxx6ky16cg855cjj807ibp55wqscm6-plasma-panel-colorizer-2.3.0/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh' '/nix/store/zrxxx6ky16cg855cjj807ibp55wqscm6-plasma-panel-colorizer-2.3.0/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/presets/' b;'/nix/store/zrxxx6ky16cg855cjj807ibp55wqscm6-plasma-panel-colorizer-2.3.0/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh' '/home/odexine/.config/panel-colorizer/presets/' 126 0  /bin/sh: line 1: /nix/store/zrxxx6ky16cg855cjj807ibp55wqscm6-plasma-panel-colorizer-2.3.0/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh: Permission denied
                                              /bin/sh: line 1: /nix/store/zrxxx6ky16cg855cjj807ibp55wqscm6-plasma-panel-colorizer-2.3.0/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh: Permission denied

Expected Result
Presets shown

System information (please complete the following):

Run kinfo on a terminal and paste the output bellow

Operating System: NixOS 25.05
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.13 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 980 Ti/PCIe/SSE2
  • Things in your system that might be relevant: [e.g. Kwin scripts, Themes, Addons]

Additional context
This is a nixpkgs error, actually. I think the script needs to be exposed in some sense, I just don't have the time to investigate right now, sorry

@de-odex de-odex added the bug Something isn't working label Feb 18, 2025
@de-odex de-odex changed the title [Bug]: [Bug]: Presets not listed on home-manager based install Feb 18, 2025
@luisbocanegra
Copy link
Owner

Hi @de-odex thanks for reporting this.

This is a nixpkgs error, actually. I think the script needs to be exposed in some sense, I just don't have the time to investigate right now, sorry

Seems so yeah, there is probably a way to mark that file as executable in the nix package, similar to what I did for the AUR one: https://aur.archlinux.org/cgit/aur.git/commit/?h=plasma6-applets-panel-colorizer&id=eab7fa66bd9b98f7dedae8d2144aafc5ad602bba

@HeitorAugustoLN since you were the original packager and still appear as maintainer maybe you can help us with this? Hope the ping doesn't bother you :)

@HeitorAugustoLN
Copy link
Contributor

Thanks for reporting this! And thanks for the ping @luisbocanegra, it didn't bother me. I opened a PR fixing the package in nixpkgs (NixOS/nixpkgs#383192). While it is not merged, you can add an overlay fixing it:

{
  nixpkgs.overlays = [
    (final: prev: {
      plasma-panel-colorizer = prev.plasma-panel-colorizer.overrideAttrs {
        postInstall = "chmod 755 $out/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh";
      };
    })
  ];
}

I probably didn't see this script while updating to 1.0.0 😅

@HeitorAugustoLN
Copy link
Contributor

@de-odex in the PR, I also added a patch that makes the dbus service work by default, without having to configure the python executable and glib. Could you also test it to see if works correctly?

@de-odex
Copy link
Author

de-odex commented Feb 19, 2025

Thank you for the quick response. I'll be able to try it perhaps tomorrow or the next day

@shantanuprasadbtech
Copy link

Also faced this issue. Installed it from the unstable channel, though I didn't use home-manager. Confirmed that it's the latest version, 2.4.3. No presets were showing up, either built-in or user added.

Then I put the overlay mentioned above in configuration.nix, and now it seems to be working fine. So all's good, but just thought I'd mention that this issue still persists on fresh Nix installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants