chrome: load favicon dbus extension directly
This commit is contained in:
@@ -72,6 +72,12 @@ in
|
|||||||
recursive = true;
|
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 {
|
xdg.configFile."google-chrome/External Extensions/${extensionId}.json".text = builtins.toJSON {
|
||||||
external_crx = "${extensionPackage}/chrome-favicon-dbus.crx";
|
external_crx = "${extensionPackage}/chrome-favicon-dbus.crx";
|
||||||
external_version = extensionVersion;
|
external_version = extensionVersion;
|
||||||
|
|||||||
@@ -18,13 +18,20 @@
|
|||||||
exec ${../dotfiles/lib/bin/desktop_shell_ui} "$@"
|
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 {
|
googleChrome = pkgs.symlinkJoin {
|
||||||
name = "google-chrome-wayland-fractional-scale-workaround";
|
name = "google-chrome-wayland-fractional-scale-workaround";
|
||||||
paths = [pkgs.google-chrome];
|
paths = [pkgs.google-chrome];
|
||||||
nativeBuildInputs = [pkgs.makeWrapper];
|
nativeBuildInputs = [pkgs.makeWrapper];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram "$out/bin/google-chrome-stable" \
|
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"
|
desktop_file="$out/share/applications/google-chrome.desktop"
|
||||||
rm "$desktop_file"
|
rm "$desktop_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user