From f97dc7adbc982aed78b58e6e1adc0a29b3785186 Mon Sep 17 00:00:00 2001 From: xieby1 Date: Mon, 12 Aug 2024 21:35:04 +0800 Subject: [PATCH] usr: gui: singleton_web_apps: use chromium on non-x86-linux platform --- usr/gui/singleton_web_apps.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/gui/singleton_web_apps.nix b/usr/gui/singleton_web_apps.nix index 2f606d07..34ac8e16 100644 --- a/usr/gui/singleton_web_apps.nix +++ b/usr/gui/singleton_web_apps.nix @@ -1,7 +1,9 @@ { config, pkgs, lib, ... }: let # You Can Change To Chrome-Like Browser Here! - chromeLikeBrowser = "${pkgs.microsoft-edge}/bin/microsoft-edge"; + chromeLikeBrowser = if (lib.meta.availableOn builtins.currentSystem pkgs.microsoft-edge) + then "${pkgs.microsoft-edge}/bin/microsoft-edge" + else "${pkgs.chromium}/bin/chromium"; singleton = pkgs.writeShellScriptBin "singleton.sh" '' if [[ $# -lt 2 || $1 == "-h" ]]