summary refs log tree commit diff
path: root/pkgs/build-support/make-desktopitem/default.nix
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-12-12 17:25:56 -0600
committerThomas Tuegel <ttuegel@gmail.com>2015-12-12 17:25:56 -0600
commit623a117bdd6491cb81ca7504c19d0fa2fd785af3 (patch)
treefb682e7ec0f934c72792947e7a44e4063af396c8 /pkgs/build-support/make-desktopitem/default.nix
parente0f6dc36c9613f2708da99e4c3965b2311187b29 (diff)
downloadnixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar.gz
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar.bz2
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar.lz
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar.xz
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.tar.zst
nixpkgs-623a117bdd6491cb81ca7504c19d0fa2fd785af3.zip
makeDesktopItem: add StartupNotify key
Diffstat (limited to 'pkgs/build-support/make-desktopitem/default.nix')
-rw-r--r--pkgs/build-support/make-desktopitem/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/make-desktopitem/default.nix b/pkgs/build-support/make-desktopitem/default.nix
index 1a03faae54c..d4baf17adf1 100644
--- a/pkgs/build-support/make-desktopitem/default.nix
+++ b/pkgs/build-support/make-desktopitem/default.nix
@@ -9,6 +9,7 @@
 , genericName
 , mimeType ? ""
 , categories ? "Application;Other;"
+, startupNotify ? null
 }:
 
 stdenv.mkDerivation {
@@ -26,6 +27,8 @@ stdenv.mkDerivation {
     GenericName=${genericName}
     MimeType=${mimeType}
     Categories=${categories}
-    EOF
+    ${if startupNotify == null then ''EOF'' else ''
+    StartupNotify=${startupNotify}
+    EOF''}
   '';
 }