kinfocenter: fix symlink to systemsettings5 #108356
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As
kinfocenter
's implementation consists of only KCMs, which areactually just displayed using
systemsettings5
' KCM shell, thekinfocenter
binary is just a symlink tosystemsettings5
.In traditional FHS environments, having a relative symlink to the
systemsettings5
binary within the samebin/
directory works justfine, whereas this is broken on NixOS where
systemsettings5
resides ina completely different
bin/
directory of the corresponding store item.Usually CMake's
find_package
should be able to locate thesystemsettings5
binary, but fails for reasons unknown to do so onNixOS - so for now fixing the symlink manually as part of the
preFixup
phase will do the job of making
kinfocenter
work again.Motivation for this change
Get rid of this message when starting Info Center:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)