chrome: load favicon dbus extension directly
This commit is contained in:
@@ -72,6 +72,12 @@ in
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file."chrome-favicon-dbus-extension" = {
|
||||
source = extensionSource;
|
||||
recursive = true;
|
||||
force = true;
|
||||
};
|
||||
|
||||
xdg.configFile."google-chrome/External Extensions/${extensionId}.json".text = builtins.toJSON {
|
||||
external_crx = "${extensionPackage}/chrome-favicon-dbus.crx";
|
||||
external_version = extensionVersion;
|
||||
|
||||
@@ -18,13 +18,20 @@
|
||||
exec ${../dotfiles/lib/bin/desktop_shell_ui} "$@"
|
||||
'';
|
||||
};
|
||||
chromeCommandLineFlags =
|
||||
[
|
||||
"--disable-features=WaylandFractionalScaleV1"
|
||||
]
|
||||
++ lib.optionals config.myModules.chrome-favicon-dbus.enable [
|
||||
"--load-extension=${inputs.chrome-favicon-dbus}/extension"
|
||||
];
|
||||
googleChrome = pkgs.symlinkJoin {
|
||||
name = "google-chrome-wayland-fractional-scale-workaround";
|
||||
paths = [pkgs.google-chrome];
|
||||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram "$out/bin/google-chrome-stable" \
|
||||
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||
${lib.concatMapStringsSep " \\\n " (flag: "--add-flags ${lib.escapeShellArg flag}") chromeCommandLineFlags}
|
||||
|
||||
desktop_file="$out/share/applications/google-chrome.desktop"
|
||||
rm "$desktop_file"
|
||||
|
||||
Reference in New Issue
Block a user