feat(firefox): remove ssb config

SSB support is being removed in Firefox 86
This commit is contained in:
Felix Schröter 2021-03-04 15:08:03 +01:00
parent d8a8aaac62
commit 26ef2d5d9c
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58

View file

@ -49,7 +49,6 @@ let
# Other # Other
"browser.startup.page" = 3; "browser.startup.page" = 3;
"browser.ssb.enabled" = true;
"browser.tabs.drawInTitlebar" = true; "browser.tabs.drawInTitlebar" = true;
"browser.aboutConfig.showWarning" = false; "browser.aboutConfig.showWarning" = false;
"signon.rememberSignons" = false; "signon.rememberSignons" = false;
@ -110,21 +109,6 @@ in {
StartupWMClass="${escapeDesktopArg attrs.name}" StartupWMClass="${escapeDesktopArg attrs.name}"
''; '';
}); });
makeFirefoxWebAppDesktopItem = attrs:
let
# --class not yet respected: https://bugzilla.mozilla.org/show_bug.cgi?id=1606247
mkExec = with lib;
{ app, name, profile ? "private", ... }: ''
firefox -p "${escapeDesktopArg profile}" --ssb="${
escapeDesktopArg app
}" --class="${escapeDesktopArg name}"
'';
in pkgs.makeDesktopItem ((removeAttrs attrs [ "app" "profile" ]) // {
exec = mkExec attrs;
extraEntries = ''
StartupWMClass="${escapeDesktopArg attrs.name}"
'';
});
in (with pkgs; in (with pkgs;
[ (tor-browser-bundle-bin.override { pulseaudioSupport = true; }) ]) ++ [ [ (tor-browser-bundle-bin.override { pulseaudioSupport = true; }) ]) ++ [
(makeFirefoxProfileDesktopItem { (makeFirefoxProfileDesktopItem {
@ -133,15 +117,5 @@ in {
icon = "firefox"; # TODO looks different icon = "firefox"; # TODO looks different
profile = "work"; profile = "work";
}) })
(makeFirefoxWebAppDesktopItem {
name = "element";
desktopName = "Element";
app = "https://app.element.io";
})
(makeFirefoxWebAppDesktopItem {
name = "youtube-music";
desktopName = "YouTube Music";
app = "https://music.youtube.com";
})
]; ];
} }