mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
plasma5Packages.kinfocenter: fix with --inherit-argv0
This replicates14001b14fcfor 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 with7712700b18where 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` in14001b14fcThe commit at hand fixes plasma5's `kinfocenter`.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user