chromium: add StartupWMClass to desktop file. Fixes #12433

This commit is contained in:
Luca Bruno 2016-02-29 20:42:58 +01:00
parent cd897f657c
commit 5f8311775c
2 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,9 @@ let
"x-scheme-handler/unknown" "x-scheme-handler/unknown"
]; ];
categories = "Network;WebBrowser"; categories = "Network;WebBrowser";
extraEntries = ''
StartupWMClass=chromium-browser
'';
}; };
suffix = if channel != "stable" then "-" + channel else ""; suffix = if channel != "stable" then "-" + channel else "";

View File

@ -10,6 +10,7 @@
, mimeType ? "" , mimeType ? ""
, categories ? "Application;Other;" , categories ? "Application;Other;"
, startupNotify ? null , startupNotify ? null
, extraEntries ? ""
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -27,6 +28,7 @@ stdenv.mkDerivation {
GenericName=${genericName} GenericName=${genericName}
MimeType=${mimeType} MimeType=${mimeType}
Categories=${categories} Categories=${categories}
${extraEntries}
${if startupNotify == null then ''EOF'' else '' ${if startupNotify == null then ''EOF'' else ''
StartupNotify=${startupNotify} StartupNotify=${startupNotify}
EOF''} EOF''}