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"
|
"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 "";
|
||||||
|
@ -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''}
|
||||||
|
Loading…
Reference in New Issue
Block a user