1
0

pkgs/chromium-incognito: Use writeShellScriptBin

This commit is contained in:
clerie 2024-03-17 14:33:57 +01:00
parent 5b8b8f8cab
commit 7b67445838

View File

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let let
chromium-incognito-wrapper = pkgs.writeScriptBin "chromium" '' chromium-incognito-wrapper = pkgs.writeShellScriptBin "chromium" ''
${pkgs.ungoogled-chromium}/bin/chromium --incognito "$@" ${pkgs.ungoogled-chromium}/bin/chromium --incognito "$@"
''; '';
@ -19,9 +19,9 @@ in pkgs.stdenv.mkDerivation {
Type=Application Type=Application
Categories=Network;WebBrowser; Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-private-window; Actions=new-window;
[Desktop Action new-private-window] [Desktop Action new-window]
Name=New Incognito Window Name=New Incognito Window
Exec=${chromium-incognito-wrapper}/bin/chromium Exec=${chromium-incognito-wrapper}/bin/chromium
''; '';