popcorntime: fix desktop launcher item (#201657)

* popcorntime: fix desktop launcher item

authored by

Emil Nikolov and committed by
GitHub
7dbb6f30 94893cc1

+13
+13
pkgs/applications/video/popcorntime/default.nix
··· 49 "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}" 50 ]; 51 52 # Extract and copy executable in $out/bin 53 installPhase = '' 54 mkdir -p $out/share/applications $out/bin $out/opt/bin $out/share/icons/hicolor/scalable/apps/ ··· 60 ln -s $out/opt/popcorntime/Popcorn-Time $out/bin/popcorntime 61 62 ln -s $out/opt/popcorntime/src/app/images/icon.png $out/share/icons/hicolor/scalable/apps/popcorntime.png 63 ''; 64 65 # GSETTINGS_SCHEMAS_PATH is not set in installPhase
··· 49 "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}" 50 ]; 51 52 + desktopItem = makeDesktopItem { 53 + name = pname; 54 + exec = pname; 55 + icon = pname; 56 + comment = meta.description; 57 + genericName = meta.description; 58 + type = "Application"; 59 + desktopName = "Popcorn-Time"; 60 + categories = [ "Video" "AudioVideo" ]; 61 + }; 62 + 63 # Extract and copy executable in $out/bin 64 installPhase = '' 65 mkdir -p $out/share/applications $out/bin $out/opt/bin $out/share/icons/hicolor/scalable/apps/ ··· 71 ln -s $out/opt/popcorntime/Popcorn-Time $out/bin/popcorntime 72 73 ln -s $out/opt/popcorntime/src/app/images/icon.png $out/share/icons/hicolor/scalable/apps/popcorntime.png 74 + 75 + ln -s ${desktopItem}/share/applications/popcorntime.desktop $out/share/applications/popcorntime.desktop 76 ''; 77 78 # GSETTINGS_SCHEMAS_PATH is not set in installPhase