davinci-resolve: add icon to desktop item

This commit is contained in:
Andrew Marshall 2024-06-14 15:57:01 -04:00
parent 51e585c476
commit 5ff3569dc8

View File

@ -169,7 +169,7 @@ let
desktopName = "Davinci Resolve${lib.optionalString studioVariant " Studio"}";
genericName = "Video Editor";
exec = "davinci-resolve${lib.optionalString studioVariant "-studio"}";
# icon = "DV_Resolve";
icon = "davinci-resolve${lib.optionalString studioVariant "-studio"}";
comment = "Professional video editing, color, effects and audio post-processing";
categories = [
"AudioVideo"
@ -255,8 +255,9 @@ buildFHSEnv {
}";
extraInstallCommands = ''
mkdir -p $out/share/applications
mkdir -p $out/share/applications $out/share/icons/hicolor/128x128/apps
ln -s ${davinci}/share/applications/*.desktop $out/share/applications/
ln -s ${davinci}/graphics/DV_Resolve.png $out/share/icons/hicolor/128x128/apps/davinci-resolve${lib.optionalString studioVariant "-studio"}.png
'';
passthru = {