helium-browser: fix build (again)
All checks were successful
checks / checks (push) Successful in 2h18m43s

This commit is contained in:
2025-09-28 20:30:43 +04:00
parent d6a9713620
commit 18d0646948

View File

@@ -145,22 +145,22 @@
# Install Desktop Entry # Install Desktop Entry
install -D chrome/installer/linux/common/desktop.template \ install -D chrome/installer/linux/common/desktop.template \
$out/share/applications/chromium-browser.desktop $out/share/applications/helium-browser.desktop
substituteInPlace $out/share/applications/chromium-browser.desktop \ substituteInPlace $out/share/applications/helium-browser.desktop \
--replace "@@MENUNAME@@" "Chromium" \ --replace "@@MENUNAME@@" "Helium" \
--replace "@@PACKAGE@@" "chromium" \ --replace "@@PACKAGE@@" "helium" \
--replace "Exec=/usr/bin/@@USR_BIN_SYMLINK_NAME@@" "Exec=chromium" --replace "Exec=/usr/bin/@@USR_BIN_SYMLINK_NAME@@" "Exec=helium"
# Append more mime types to the end # Append more mime types to the end
sed -i '/^MimeType=/ s,$,x-scheme-handler/webcal;x-scheme-handler/mailto;x-scheme-handler/about;x-scheme-handler/unknown,' \ sed -i '/^MimeType=/ s,$,x-scheme-handler/webcal;x-scheme-handler/mailto;x-scheme-handler/about;x-scheme-handler/unknown,' \
$out/share/applications/chromium-browser.desktop $out/share/applications/helium-browser.desktop
# See https://github.com/NixOS/nixpkgs/issues/12433 # See https://github.com/NixOS/nixpkgs/issues/12433
sed -i \ sed -i \
-e '/\[Desktop Entry\]/a\' \ -e '/\[Desktop Entry\]/a\' \
-e 'StartupWMClass=chromium-browser' \ -e 'StartupWMClass=helium-browser' \
$out/share/applications/chromium-browser.desktop $out/share/applications/helium-browser.desktop
''; '';
passthru = { passthru = {