firefox: ship a "stub DNS" desktop file variant
though note that my stub-dns seems to be broken recently...
This commit is contained in:
@@ -113,9 +113,20 @@ let
|
|||||||
name = "${cfg.browser.libName}-in-vpn";
|
name = "${cfg.browser.libName}-in-vpn";
|
||||||
desktopName = "${cfg.browser.libName} (VPN)";
|
desktopName = "${cfg.browser.libName} (VPN)";
|
||||||
genericName = "Web Browser";
|
genericName = "Web Browser";
|
||||||
# N.B.: --new-instance ensures we don't reuse an existing non-vpn instance.
|
# N.B.: --new-instance ensures we don't reuse an existing differenty-namespaced instance.
|
||||||
# OTOH, it may error about "only one instance can run at a time": close the non-VPN instance if you see that.
|
# OTOH, it may error about "only one instance can run at a time": close the other instance if you see that.
|
||||||
exec = "${lib.getExe pkgs.sane-scripts.vpn} do - -- ${cfg.browser.libName} --new-instance";
|
exec = "${lib.getExe pkgs.sane-scripts.vpn} do default -- ${cfg.browser.libName} --new-instance";
|
||||||
|
icon = cfg.browser.libName;
|
||||||
|
categories = [ "Network" "WebBrowser" ];
|
||||||
|
type = "Application";
|
||||||
|
})
|
||||||
|
(pkgs.makeDesktopItem {
|
||||||
|
name = "${cfg.browser.libName}-stub-dns";
|
||||||
|
desktopName = "${cfg.browser.libName} (stub DNS)";
|
||||||
|
genericName = "Web Browser";
|
||||||
|
# N.B.: --new-instance ensures we don't reuse an existing differently-namespaced instance.
|
||||||
|
# OTOH, it may error about "only one instance can run at a time": close the other instance if you see that.
|
||||||
|
exec = "${lib.getExe pkgs.sane-scripts.vpn} do none -- ${cfg.browser.libName} --new-instance";
|
||||||
icon = cfg.browser.libName;
|
icon = cfg.browser.libName;
|
||||||
categories = [ "Network" "WebBrowser" ];
|
categories = [ "Network" "WebBrowser" ];
|
||||||
type = "Application";
|
type = "Application";
|
||||||
|
Reference in New Issue
Block a user