From edb2e181e78e089649d66d3e19241fe9a07b3c8a Mon Sep 17 00:00:00 2001 From: toastal <561087+toastal@users.noreply.github.com> Date: Thu, 3 Jun 2021 13:33:25 +0000 Subject: [PATCH] add .desktop file (#161) --- assets/himalaya.desktop | 18 ++++++++++++++++++ flake.nix | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 assets/himalaya.desktop diff --git a/assets/himalaya.desktop b/assets/himalaya.desktop new file mode 100644 index 0000000..08aea20 --- /dev/null +++ b/assets/himalaya.desktop @@ -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 diff --git a/flake.nix b/flake.nix index ab090c2..a7a5a1d 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,10 @@ # configure non-Rust dependencies (see below) here. ${name} = oldAttrs: { inherit buildInputs nativeBuildInputs; + postInstall = '' + mkdir -p $out/share/applications/ + cp assets/himalaya.desktop $out/share/applications/ + ''; }; }; };