initial_preferences for google-chrome on linux

413 views
Skip to first unread message

LoreEnjoyer

unread,
Mar 28, 2025, 1:58:04 PM3/28/25
to Chromium-discuss
Hey everyone,

I'm trying to get the initial_preferences file to work for Google Chrome on Linux (NixOS), but it doesn't seem to be picked up. Here’s the file I’m using:

```
{
  "bookmark_bar": {
    "show_on_all_tabs": true
  },
  "browser": {
    "show_home_button": true
  },
  "distribution": {
    "browser": {
      "confirm_to_quit": true
    },
    "do_not_create_desktop_shortcut": true,
    "do_not_create_quick_launch_shortcut": true,
    "do_not_create_taskbar_shortcut": true,
    "do_not_launch_chrome": true,
    "do_not_register_for_update_launch": true,
    "import_bookmarks": true,
    "import_bookmarks_from_file": "bookmarks.html",
    "import_history": true,
    "import_home_page": true,
    "import_search_engine": true,
    "make_chrome_default": true,
    "make_chrome_default_for_user": true,
    "ping_delay": 60,
    "system_level": true,
    "verbose_logging": true
  },
  "first_run_tabs": [
    "http://www.example.com",
    "http://new_tab_page"
  ],
  "homepage": "https://www.google.com",
  "homepage_is_newtabpage": false,
  "session": {
    "restore_on_startup": 4,
    "startup_urls": [
      "https://www.google.com/ig"
    ]
  },
  "sync_promo": {
    "show_on_first_run_allowed": false
  }
}
```

I've placed this file in:
  • /etc/opt/chrome/initial_preferences
  • /etc/chrome/initial_preferences
  • The same directory as the google-chrome binary

But it never seems to apply when a new user launches Chrome for the first time.
I've already followed the instructions from:

At this point, I'm wondering:

  1. Are initial_preferences even supported in Google Chrome, or is this only a Chromium feature?
  2. Is there a different path I should use on NixOS?

Any information would be greatly appreciated! Thanks in advance.

Reply all
Reply to author
Forward
0 new messages