Make |context| passed to queryRequiredElement optional
[chromium-blink-merge.git] / docs / linux_dev_build_as_default_browser.md
blob41226d99a26f2f2f807e8183318e3de6ec2cb458
1 Copy a stable version's .desktop file and modify it to point to your dev build:
2   * `cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/chromium-mybuild-c-release.desktop`
3   * `vim ~/.local/share/applications/chromium-mybuild-c-release.desktop`
4     * Change first Exec line in desktop entry: (change path to your dev setup)
5       * `Exec=/usr/local/google/home/scheib/c/src/out/Release/chrome %U`
7 Set the default:
8   * `xdg-settings set default-web-browser chromium-mybuild-c-release.desktop`
10 Launch, telling Chrome which config you're using:
11   * `CHROME_DESKTOP=chromium-mybuild-c-release.desktop out/Release/chrome`
12   * Verify Chrome thinks it is default in `about:settings` page.
13     * Press the button to make default if not.
15 Restore the normal default:
16   * `xdg-settings set default-web-browser google-chrome.desktop`
19 A single line to change the default, run, and restore:
20   * `xdg-settings set default-web-browser chromium-mybuild-c-release.desktop && CHROME_DESKTOP=chromium-mybuild-c-release.desktop out/Release/chrome; xdg-settings set default-web-browser google-chrome.desktop && echo Restored default browser.`