feat: add desktop file

This commit is contained in:
Tobias Berger 2024-02-05 22:13:55 +01:00
parent 9a98ba676e
commit 9ea84d3555
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
2 changed files with 14 additions and 0 deletions

View file

@ -29,4 +29,10 @@ in
patchelf --set-rpath "${pkgs.lib.makeLibraryPath packages}:$old_rpath" target/x86_64-unknown-linux-gnu/release/todoodoo
fi
'';
postInstall = ''
mkdir -p $out/share/applications/
cp todoodoo.desktop $out/share/applications/todoodoo.desktop
substituteInPlace $out/share/applications/todoodoo.desktop --replace /usr/bin/todoodoo $out/bin/todoodoo
'';
}

8
todoodoo.desktop Normal file
View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=To-DooDoo
GenericName=TODO Manager
Comment=Basic graphical app to edit a todo.txt in the home folder. It's kinda doo doo.
Terminal=false
Exec=/usr/bin/todoodoo