Skip to content

Commit

Permalink
davinci-resolve: propagate desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
Naxdy committed May 26, 2024
1 parent 94668ac commit 1f2178f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/applications/video/davinci-resolve/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ let

desktopItems = [
(makeDesktopItem {
name = "davinci-resolve";
desktopName = "Davinci Resolve";
name = pname;
desktopName = "Davinci Resolve${lib.optionalString studioVariant " Studio"}";
genericName = "Video Editor";
exec = "resolve";
# icon = "DV_Resolve";
exec = pname; # buildFHSEnv names the bin script according to pname
icon = "DV_Resolve${lib.optionalString studioVariant "_studio"}"; # we do this to avoid clashes with the non-studio version, in case someone installs both
comment = "Professional video editing, color, effects and audio post-processing";
categories = [
"AudioVideo"
Expand Down Expand Up @@ -254,6 +254,12 @@ buildFHSEnv {
''
}";

extraInstallCommands = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/128x128/apps
ln -s ${davinci}/share/applications/davinci-resolve.desktop $out/share/applications/${davinci.pname}.desktop
ln -s ${davinci}/graphics/DV_Resolve.png $out/share/icons/hicolor/128x128/apps/DV_Resolve${lib.optionalString studioVariant "_studio"}.png
'';

passthru = {
inherit davinci;
updateScript = lib.getExe (writeShellApplication {
Expand Down

0 comments on commit 1f2178f

Please sign in to comment.