atlauncher: make desktop item attrs static

Overriding pname would change the desktop item attributes which is a regression
This commit is contained in:
GetPsyched 2024-01-23 19:39:42 +05:30
parent 192e7f9887
commit 6b3ba452ed
No known key found for this signature in database

View File

@ -32,16 +32,16 @@ stdenv.mkDerivation (finalAttrs: {
--add-flags "--no-launcher-update"
mkdir -p $out/share/icons/hicolor/scalable/apps
cp $ICON $out/share/icons/hicolor/scalable/apps/${finalAttrs.pname}.svg
cp $ICON $out/share/icons/hicolor/scalable/apps/atlauncher.svg
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = finalAttrs.pname;
exec = finalAttrs.pname;
icon = finalAttrs.pname;
name = "atlauncher";
exec = "atlauncher";
icon = "atlauncher";
desktopName = "ATLauncher";
categories = [ "Game" ];
})