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 49 "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}" 50 50 ]; 51 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 + 52 63 # Extract and copy executable in $out/bin 53 64 installPhase = '' 54 65 mkdir -p $out/share/applications $out/bin $out/opt/bin $out/share/icons/hicolor/scalable/apps/ ··· 60 71 ln -s $out/opt/popcorntime/Popcorn-Time $out/bin/popcorntime 61 72 62 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 63 76 ''; 64 77 65 78 # GSETTINGS_SCHEMAS_PATH is not set in installPhase