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"
];
categories = "Network;WebBrowser";
extraEntries = ''
StartupWMClass=chromium-browser
'';
};
suffix = if channel != "stable" then "-" + channel else "";

View File

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