nvidia-settings: Install desktop file and icon.
The template has substitution variables intended to be replaced resulting in absolute paths. Because absolute paths break after the desktop file is copied by a desktop environment, make Exec and Icon be just a name.
This commit is contained in:
parent
2d7bce29d1
commit
f93c5deb47
1 changed files with 11 additions and 0 deletions
|
@ -72,6 +72,17 @@ stdenv.mkDerivation rec {
|
||||||
${lib.optionalString (!withGtk3) ''
|
${lib.optionalString (!withGtk3) ''
|
||||||
rm -f $out/lib/libnvidia-gtk3.so.*
|
rm -f $out/lib/libnvidia-gtk3.so.*
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
# Install the desktop file and icon.
|
||||||
|
# The template has substitution variables intended to be replaced resulting
|
||||||
|
# in absolute paths. Because absolute paths break after the desktop file is
|
||||||
|
# copied by a desktop environment, make Exec and Icon be just a name.
|
||||||
|
sed -i doc/nvidia-settings.desktop \
|
||||||
|
-e "s|^Exec=.*$|Exec=nvidia-settings|" \
|
||||||
|
-e "s|^Icon=.*$|Icon=nvidia-settings|" \
|
||||||
|
-e "s|__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__|Settings|g"
|
||||||
|
install doc/nvidia-settings.desktop -D -t $out/share/applications/
|
||||||
|
install doc/nvidia-settings.png -D -t $out/share/icons/hicolor/128x128/apps/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
binaryName = if withGtk3 then ".nvidia-settings-wrapped" else "nvidia-settings";
|
binaryName = if withGtk3 then ".nvidia-settings-wrapped" else "nvidia-settings";
|
||||||
|
|
Loading…
Reference in a new issue