Set custom preferences for Brave browser in disposable qube

I know this isn’t Qubes specific but cannot find the answer, so I thought I should try here… Thanks in advance.

I didn’t need gnome-keyring in my (Debian) distro template, so I just removed it from there. No more annoying keyring popups in the Brave dispVM.

sudo apt-get remove gnome-keyring
2 Likes

I guess I won’t need it too? So, removed it and it works now… Can’t think through if I’d need it for anything… Thanks.

Instead of getting any sleep tonight, I decided to necro this topic & update the initial_preferences file. apparatus’s methodology still works on Qubes 4.3.0, fedora-42-xfce, Brave 1.85.118. Looks like Brave has made some backend updates. A few variables changed. I also added code to remove the Leo AI, and override the default Google search engine with DuckDuckGo.

I cannot figure out how to configure 1) dark mode on default, and 2) disabled javascript optimization, as per the PG recommendations. I leave this task to the next enterprising traveller

initial_preferences

{
    "brave": {
        "default_private_search_provider_data": {
            "favicon_url": "https://duckduckgo.com/favicon.ico",
            "id": "4",
            "keyword": ":d",
            "prepopulate_id": 501,
            "short_name": "DuckDuckGo",
            "suggestions_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
            "synced_guid": "485bf7d3-0215-45af-87dc-538868000501",
            "url": "https://duckduckgo.com/?q={searchTerms}&t=brave"
        },
        "default_private_search_provider_guid": "485bf7d3-0215-45af-87dc-538868000501",
        "ai_chat": {
            "context_menu_enabled": false,
            "storage_enabled": false,
            "tab_organization_enabled": false,
            "user_customization_enabled": false,
            "user_memory_enabled": false
        },
        "autocomplete_enabled": false,
        "brave_ads": {
            "should_allow_ads_subdivision_targeting": false
        },
        "de_amp": {
            "enabled": true
        },
        "debounce": {
            "enabled": true
        },
        "enable_window_closing_confirm": true,
        "fb_embed_default": false,
        "linkedin_embed_default": false,
        "gcm": {
            "channel_status": false
        },
        "new_tab_page": {
            "hide_all_widgets": true,
            "show_background_image": false,
            "show_brave_news": false,
            "show_rewards": false,
            "show_stats": false,
            "show_together": false
        },
        "reduce_language": true,
        "rewards": {
            "badge_text": "",
            "show_brave_rewards_button_in_location_bar": false
        },
        "sidebar": {
            "hidden_built_in_items": [
                7
            ],
            "last_used_built_in_item_type": 0,
            "sidebar_items": [
                {
                    "built_in_item_type": 1,
                    "type": 0
                },
                {
                    "built_in_item_type": 2,
                    "type": 0
                },
                {
                    "built_in_item_type": 3,
                    "type": 0
                },
                {
                    "built_in_item_type": 4,
                    "type": 0
                }
            ]
        },
        "today": {
            "should_show_toolbar_button": false
        },
        "twitter_embed_default": false,
        "wallet": {
            "default_solana_wallet": 1,
            "default_wallet2": 1,
            "show_wallet_icon_on_toolbar": false
        },
        "webtorrent_enabled": false
    },    
    "browser": {
        "custom_chrome_frame": false,
        "color_scheme2": 2,
        "has_seen_welcome_page": true
    },
    "default_search_provider": {
        "guid": "485bf7d3-0215-45af-87dc-538868000501"
    },
    "default_search_provider_data": {
        "mirrored_template_url_data": {
            "favicon_url": "https://duckduckgo.com/favicon.ico",
            "id": "4",
            "keyword": ":d",
            "prepopulate_id": 501,
            "short_name": "DuckDuckGo",
            "suggestions_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
            "synced_guid": "485bf7d3-0215-45af-87dc-538868000501",
            "url": "https://duckduckgo.com/?q={searchTerms}&t=brave",
            "favicon_url": "https://duckduckgo.com/favicon.ico",
            "id": "4",
            "keyword": ":d",
            "prepopulate_id": 501,
            "short_name": "DuckDuckGo",
            "suggestions_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
            "synced_guid": "485bf7d3-0215-45af-87dc-538868000501",
            "url": "https://duckduckgo.com/?q={searchTerms}&t=brave"
        },
        "template_url_data": {
            "favicon_url": "https://duckduckgo.com/favicon.ico",
            "id": "4",
            "keyword": ":d",
            "prepopulate_id": 501,
            "short_name": "DuckDuckGo",
            "suggestions_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
            "synced_guid": "485bf7d3-0215-45af-87dc-538868000501",
            "url": "https://duckduckgo.com/?q={searchTerms}&t=brave",
            "favicon_url": "https://duckduckgo.com/favicon.ico",
            "id": "4",
            "keyword": ":d",
            "prepopulate_id": 501,
            "short_name": "DuckDuckGo",
            "suggestions_url": "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list",
            "synced_guid": "485bf7d3-0215-45af-87dc-538868000501",
            "url": "https://duckduckgo.com/?q={searchTerms}&t=brave"
        }

    },
    "media_router": {
        "enable_media_router": false
    },
    "ntp": {
        "custom_background_inspiration": false,
        "custom_background_local_to_device": false,
        "shortcust_visible": false
    },
    "profile": {
        "content_settings": {
            "exceptions": {
                "cosmeticFiltering": {
                    "*,*": {
                        "setting": 2
                    },
                    "*,https://firstparty": {
                        "setting": 2
                    }
                },
                "fingerprintingV2": {
                    "*,*": {
                        "setting": 3
                    }
                },
                "shieldsAds": {
                    "*,*": {
                        "setting": 2
                    }
                },
                "trackers": {
                    "*,*": {
                        "setting": 2
                    }
                }
            }
        },
        "cookie_controls_mode": 1,
        "default_content_setting_values": {
            "brave_remember_1p_storage": 2,
            "cookies": 4,
            "httpsUpgrades": 2,
            "javascript": 2
        }
    },
    "safety_hub": {
        "unused_site_permissions_revocation": {
            "enabled": true
        }
    },
    "search": {
        "suggest_enabled": false
    },
    "webrtc": {
        "ip_handling_policy": "disable_non_proxied_udp"
    }
}