trelby: fix .desktop file and install icon to correct path

This commit is contained in:
Abhinav Kuruvila Joseph 2025-06-28 12:56:55 +05:30
parent cea7fa4896
commit 6c65343377

View File

@ -40,6 +40,15 @@ python3Packages.buildPythonApplication rec {
wxpython
];
postInstall = ''
install -Dm644 trelby/resources/trelby.desktop $out/share/applications/trelby.desktop
install -Dm644 trelby/resources/icon256.png $out/share/icons/hicolor/256x256/apps/trelby.png
substituteInPlace $out/share/applications/trelby.desktop \
--replace-fail "Icon=trelby256" "Icon=trelby"
'';
meta = {
description = "Free, multiplatform, feature-rich screenwriting program";
homepage = "www.trelby.org";