mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
chromium: add StartupWMClass to desktop file. Fixes #12433
This commit is contained in:
parent
cd897f657c
commit
5f8311775c
@ -57,6 +57,9 @@ let
|
||||
"x-scheme-handler/unknown"
|
||||
];
|
||||
categories = "Network;WebBrowser";
|
||||
extraEntries = ''
|
||||
StartupWMClass=chromium-browser
|
||||
'';
|
||||
};
|
||||
|
||||
suffix = if channel != "stable" then "-" + channel else "";
|
||||
|
@ -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''}
|
||||
|
Loading…
Reference in New Issue
Block a user