Closed JonathanReeve closed 1 year ago
A peek into my logs reveals this error:
org.kde.knewstuff.core: Command ' "kpackagetool5 -t Plasma/LookAndFeel -i /tmp/Sweet.tar.gz" ' failed with code 4
And when I try to run that command manually, I get:
Error: Installation of /tmp/Sweet.tar.gz failed: Could not install dependency: 'kns://colorschemes.knsrc/api.kde-look.org/1294011'
Same. Seems it has trouble getting the dependencies. Here's my info, if it matters:
nix run nixpkgs.nix-info -c nix-info -m
"x86_64-linux"
Linux 5.4.6, NixOS, 19.09.1686.69ed29f5f41 (Loris)
yes
yes
nix-env (Nix) 2.3
/nix/var/nix/profiles/per-user/root/channels/nixos
Also getting this on 19.09. Look related to this:
https://www.reddit.com/r/kde/comments/bp2r8h/cant_install_look_and_feel_themes/
I'm going to guess
Also getting this on 19.09. Look related to this:
https://www.reddit.com/r/kde/comments/bp2r8h/cant_install_look_and_feel_themes/
According to that link rolling back to frameworkintegration-5.57.0-1
fixed the issue.
I have the bug on current nixos unstable in 20.03pre which uses framework-integration-5.64.0 and the other user would have framework-integration-5.61.0 it appears.
If I knew how to write the overlay right now I'd make one to use the older version recommended as working from that reddit thread:
https://archive.archlinux.org/packages/f/frameworkintegration/frameworkintegration-5.57.0-1-x86_64.pkg.tar.xz
Maybe I'll get time to try again later.
Can also confirm that I am having the same issue.
I am not a NixOS user and wasn't able to find out where you store your knsrc
files, but while trying Kubuntu and OpenSUSE I got this problem (but for a GTK3 theme dependency). ~In Arch, where I don't have this problem, the files are stored in /etc/xdg/
whereas in the troublesome distributions they where stored in /usr/share/knsrcfiles/
. After making them available in /etc/xdg/
this problem was solved.~
I don't know if this is a bug in KDE or in the distributions, just thought I share this.
Edit: see new comment below.
This issue is still present as of today
Checking in here, issue is still present.
Finally had some time to look into this.
knsrcfiles
PathMy comment above is inaccurate, the new path (including in Arch) is: /usr/share/knsrcfiles/
. /etc/xdg/
is a legacy path that still works: https://phabricator.kde.org/D21259
This might be more than one issue, as @JonathanReeve above had problems with colorschemes
.
To check for which specific error you get, download the look-and-feel theme (now called global theme) FILENAME.tar.xz
and run:
kpackagetool5 -t Plasma/LookAndFeel -i FILENAME.tar.xz
The problem (for me) was that the filename for the GTK2/3 themes had changed from cgctheme.knsrc
and cgcgtk3.knsrc
to gtk2_themes.knsrc
and gtk3_themes.knsrc
: https://phabricator.kde.org/D26717
As a workaround one can make a copy with the old filenames, e.g.:
sudo cp /usr/share/knsrcfiles/gtk2_themes.knsrc /usr/share/knsrcfiles/cgctheme.knsrc
sudo cp /usr/share/knsrcfiles/gtk3_themes.knsrc /usr/share/knsrcfiles/cgcgtk3.knsrc
The real solution is to update old themes. The global theme include a metadata.desktop
file which includes one line with dependencies, e.g.:
X-KPackage-Dependencies=kns://cgcgtk3.knsrc/api.kde-look.org/IDNUMBER,...
which should be updated to:
X-KPackage-Dependencies=kns://gtk3_themes.knsrc/api.kde-look.org/IDNUMBER,...
For whatever reason, my mimeapps.list
seems to be messed up. What program should open the kns://
protocol URIs?
I managed to understand the cause of the malfunction, but I'm new NiX user, so I don't know how to fix it correctly.
When installing the theme kpackagetool tries to install the dependencies, which are described in the package by links in the form of kns://. To handle such links, the knshandler plugin was created. This plugin is part of the frameworkintegration package.
As far as I understood, the path to search the knshandler is hard-coded to the installation location of the kpackage package. As a result, on NixOS the search for knshandler occurs along the following path
<hash>-kpackage-<version>/libexec/kf5/kpackagehandlers/knshandler.
But rigth path is:
<hash>-frameworkintegration-<version>/libexec/kf5/kpackagehandlers/knshandler
I didn't find solution to change search direction without code changes. For test purposes was created symbolic link from
akazakov@werf> ls -al /nix/store/jl55h46yf5fgh0lmz7gf3ickg8f98fam-kpackage-5.73.0 /nix/store
total 4
dr-xr-xr-x 1 root root 30 Feb 8 17:08 .
drwxrwxr-t 1 root nixbld 1080160 Feb 8 17:25 ..
dr-xr-xr-x 1 root root 114 Jan 1 1970 lib
lrwxrwxrwx 1 root root 79 Feb 8 17:08 libexec -> /nix/store/lnbhlm8a9c8xvqkr8j9l3d64dsh3kwvw-frameworkintegration-5.73.0/libexec
dr-xr-xr-x 1 root root 12 Jan 1 1970 share
Everything works without any troubles but it can't be normal solution.
There are no problem on the traditional Linux distributions i think.
Weird, I'mon latest nixos and I'mnot encountering this problem,even through I have encountered this broblem befoore updating.
Nope,still a problem on latest
Well, I also tried to make a link from kpackage
to frameworkintegration
, but it didn't seem to work. Now the most often error I have in strace is:
536613 access("/nix/store/ln5w42yb97m7sz2vyxr7jvc69ksvach6-frameworkintegration-5.80.0/libexec/kf5/kpackagehandlers/qt.conf", F_OK) = -1 ENOENT (No such file or directory)
536613 access("/nix/store/ln5w42yb97m7sz2vyxr7jvc69ksvach6-frameworkintegration-5.80.0/libexec/kf5/kpackagehandlers/bearer/.", F_OK) = -1 ENOENT (No such file or directory)
I have the problem too.
Installation of /tmp/pNjiBY-Edna-Light.tar.gz failed: Could not install dependency: 'kns://colorschemes.knsrc/api.kde-look.org/1528959'
Same issue:
Installation of /tmp/WvprPu-com.github.vinceliuice.Fluent-dark.tar.xz failed: Could not install dependency: 'kns://colorschemes.knsrc/api.kde-look.org/1499840'
Same issue:
Installation of /tmp/clEouS-Sweet.tar.xz failed: Could not install dependency: 'kns://colorschemes.knsrc/api.kde-look.org/1294011'
Same issue:
Installation of /tmp/lTvbYf-Ant-Dark.tar.xz failed: Could not install dependency: 'kns://colorschemes.knsrc/api.kde-look.org/1464285'
still happening
Still happening here too.
nix run nixpkgs.nix-info -c nix-info -m
"x86_64-linux"
Linux 5.17.3, NixOS, 21.11 (Porcupine)
yes
yes
nix-env (Nix) 2.3.16
"nixos-21.11.337100.7b38b03d76a"
/nix/var/nix/profiles/per-user/root/channels/nixos
yep, still happens on 22.05pre
When installing the theme kpackagetool tries to install the dependencies, which are described in the package by links in the form of kns://. To handle such links, the knshandler plugin was created. This plugin is part of the frameworkintegration package.
As far as I understood, the path to search the knshandler is hard-coded to the installation location of the kpackage package. As a result, on NixOS the search for knshandler occurs along the following path
<hash>-kpackage-<version>/libexec/kf5/kpackagehandlers/knshandler.
But rigth path is:
<hash>-frameworkintegration-<version>/libexec/kf5/kpackagehandlers/knshandler
yes. this works:
kde_version=$(kdeinit5 --version | grep KDE | cut -d' ' -f2)
knshandler=$(ls /nix/store/*-frameworkintegration-$kde_version/libexec/kf5/kpackagehandlers/knshandler | head -n1)
$knshandler kns://colorschemes.knsrc/api.kde-look.org/1528959
installing...
also this works, the message is just a warning:
$knshandler kns://colorschemes.knsrc/api.kde-look.org/1473366
installing...
kf.newstuff.core: Could not determine type of archive file ' "/tmp/MNngcQ-RedDotBlackDarkColor.colors" '
the other knshandler seems gone
find /nix/store/*kpackage* -name knshandler
so probably, the problem is in
/nix/store/*-kpackage-5.94.0/lib/libKF5Package.so
related
There must be something wrong with the "candidatePath"! Therefore I tried linking /usr/lib/kf5 to /usr/lib/libexec/kf5 and the issue just went away, cheers! (kde topic 138995)
We fixed installing look and feel packages, but the error message is still there. It happens for all plugins installed in /usr/lib/qt/plugins/kcms, but doesn't seem to cause any actual issue. (kde bug 376764)
should be fixed since KDE Frameworks 5.91 (kde bug 448237)
I still get
Erreur : l'installation de /home/niels/Téléchargements/KDE/kde-store-archives/global-theme/catppuccin.tar.gz a échoué : Impossible d'installer la dépendance : « kns://colorschemes.knsrc/api.kde-look.org/1690362 »
same in terminal or in global theme settings.
on NixOS unstable
Any updates? Same here :(
in systemsettings
installing "plasma style" works for me with nixpkgs b00aa8ded743862adc8d6cd3220e91fb333b86d3
also works for the catppuccin
themes
("scratchy" dark theme and "itchy" light theme)
removing themes fails with
removing theme failed: error: plugin x is not installed
I want to install Edna theme, Its a fresh install of my NixOs (minimal version) and a simple theme install fail 🥲 any workaround? Manually install dont work too...
Assuming fixed by https://github.com/NixOS/nixpkgs/pull/198287
Can confirm that this now better works on my end
kde 6 same issues
Issue is still present on KDE6 on Ubuntu 24.10
Describe the bug
Downloading and installing KDE look-and-feel themes fails silently.
To Reproduce Steps to reproduce the behavior:
Expected behavior
The theme would be installed.
Metadata Please run
nix run nixpkgs.nix-info -c nix-info -m
and paste the result."x86_64-linux"
Linux 5.3.18, NixOS, 20.03pre206632.b0bbacb5213 (Markhor)
yes
yes
nix-env (Nix) 2.3.1
"home-manager, nixpkgs-20.03pre203529.e8f2764fe8d"
"nixos-20.03pre206632.b0bbacb5213"
/home/jon/.nix-defexpr/channels/nixpkgs
Maintainer information: