mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
chromium: add StartupWMClass to desktop file. Fixes #12433
(cherry picked from commit 5f8311775c)
This commit is contained in:
committed by
Bjørn Forsman
parent
e603afd3db
commit
a33dbb3248
@@ -57,6 +57,9 @@ let
|
||||
"x-scheme-handler/unknown"
|
||||
];
|
||||
categories = "Network;WebBrowser";
|
||||
extraEntries = ''
|
||||
StartupWMClass=chromium-browser
|
||||
'';
|
||||
};
|
||||
|
||||
suffix = if channel != "stable" then "-" + channel else "";
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
, genericName
|
||||
, mimeType ? ""
|
||||
, categories ? "Application;Other;"
|
||||
, extraEntries ? ""
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@@ -26,6 +27,7 @@ stdenv.mkDerivation {
|
||||
GenericName=${genericName}
|
||||
MimeType=${mimeType}
|
||||
Categories=${categories}
|
||||
${extraEntries}
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user