plasma5Packages.kinfocenter: fix with --inherit-argv0

This replicates

14001b14fc

for plasma5's kinfocenter.

Background:

`kinfocenter` is just a symlink to `systemsettings`;
`systemsettings` then looks at argv[0] to decide whether
it should show normal system settings, or the info center.
When wrapped with `wrapQtAppsHook`, the wrapper must ensure
the wrapped program inherits its argv[0] for this to work.
That got broken with

7712700b18

where the wrapping of symlinks got changed in that the symlink
itself is no longer wrapped with `wrapQtApp`
(which calls `wrapProgram`, which adds `--inherit-argv0`);
instead, symlinks are now simply replaced by the wrapper,
created by `makeQtWRapper`
(which calls `makeWrapper`, which doesn't care about argv[0]).

The obvious fix for `kinfocenter` is to add the
`--inherit-argv0` option to `qtWrapperArgs`.
That has already been done for plasma6's `kinfocenter` in

14001b14fc

The commit at hand fixes plasma5's `kinfocenter`.
This commit is contained in:
Yarny0
2025-05-23 16:28:17 +02:00
parent 55d1f923c4
commit d3adf21163

View File

@@ -98,6 +98,8 @@ mkDerivation {
done
'';
qtWrapperArgs = [ "--inherit-argv0" ];
# fix wrong symlink of infocenter pointing to a 'systemsettings5' binary in
# the same directory, while it is actually located in a completely different
# store path