add .desktop file (#161)

This commit is contained in:
toastal 2021-06-03 13:33:25 +00:00 committed by GitHub
parent 27638be387
commit edb2e181e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

18
assets/himalaya.desktop Normal file
View file

@ -0,0 +1,18 @@
[Desktop Entry]
Type=Application
Name=himalaya
DesktopName=Himalaya
GenericName=Mail Reader
Comment=CLI email client written in Rust
Comment[lo]=CLI Rust
Comment[th]=CLI Rust
Terminal=true
Exec=himalaya %U
Categories=Application;Network
Keywords=email
MimeType=x-scheme-handler/mailto;message/rfc822
Actions=Compose
[Desktop Action Compose]
Name=Compose
Exec=himalaya write %U

View file

@ -50,6 +50,10 @@
# configure non-Rust dependencies (see below) here. # configure non-Rust dependencies (see below) here.
${name} = oldAttrs: { ${name} = oldAttrs: {
inherit buildInputs nativeBuildInputs; inherit buildInputs nativeBuildInputs;
postInstall = ''
mkdir -p $out/share/applications/
cp assets/himalaya.desktop $out/share/applications/
'';
}; };
}; };
}; };