nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

kdePackages.full: No .desktop files generated

Open Stroopwafe1 opened this issue 1 year ago • 5 comments

Nixpkgs version

  • Stable (25.05)

Describe the bug

When installing kdePackages.full in a configuration.nix, I can see on search.nixos that it provides many programs like designer. But none of those show up in an application launcher like Plasma's default, because the nix package doesn't build desktop files.

Steps to reproduce

  1. Add kdePackages.full to a configuration.nix user packages
  2. Rebuild the system

Expected behaviour

.desktop files to appear in /run/current-system/sw/share/applications or .local/share/applications

Screenshots

No response

Relevant log output


Additional context

I tried to look at the source of kdePackages.full from search.nixos but it points to pkgs/build-support/trivial-builders I am still new with Nix, but I don't think that is the correct link, because I have made some packages for myself and can read the syntax. I tried to look in the kde subfolder of nixpkgs, but didn't find a full default.nix.

System metadata

~> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.93, NixOS, 24.11 (Vicuna), 24.11.20250619.d883b62`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.14`
 - channels(root): `"home-manager-24.11.tar.gz, nixos-24.11"`
 - nixpkgs: `/nix/store/kr7k644p5ajrm7ycm0jxd3xr120klzjn-source`

Notify maintainers

There are no maintainers listed

Maintainers

This package has no maintainers. If you find it useful, please consider becoming a maintainer!


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

Stroopwafe1 avatar Sep 08 '25 07:09 Stroopwafe1

For reference, the Arch-Linux package qt6-tools does provide the desktop files for assistant, designer, linguist, and qdbusviewer

There does exist a kdePackages.qttools but that one also doesn't generate the desktop files. But that is for a separate bug report I guess? Or is that more of a feature request?

Stroopwafe1 avatar Sep 08 '25 07:09 Stroopwafe1

cc @NixOS/qt-kde

SigmaSquadron avatar Sep 10 '25 10:09 SigmaSquadron

Could you check that with my PR you can see the icons in the launcher ?

https://github.com/NixOS/nixpkgs/pull/441994

nyanloutre avatar Sep 11 '25 08:09 nyanloutre

https://github.com/NixOS/nixpkgs/pull/441994#issuecomment-3279705976

The fix is included in qt 6.10 which should release in the coming months.

If you want it to work now you can always cherry-pick my commit on top of nixos-25.05 but be aware that this will recompile a lot of packages.

nyanloutre avatar Sep 11 '25 11:09 nyanloutre

Sorry for not getting back to you sooner. Good to know it's included in qt 6.10, I can keep using the CLI for now so it's no problem. Thanks for your time!

Stroopwafe1 avatar Sep 18 '25 06:09 Stroopwafe1