Roll src/third_party/WebKit 9d2dfea:3aea697 (svn 201972:201973)
[chromium-blink-merge.git] / docs / linux_dev_build_as_default_browser.md
blobacf298837cab445b79fdaeefe2f8283dcc6b0f15
1 # Linux Dev Build As Default Browser
3 Copy a stable version's `.desktop` file and modify it to point to your dev
4 build:
6 ```
7 cp /usr/share/applications/google-chrome.desktop \
8    ~/.local/share/applications/chromium-mybuild-c-release.desktop
9 vim ~/.local/share/applications/chromium-mybuild-c-release.desktop
11 # Change first Exec line in desktop entry: (change path to your dev setup)
12 Exec=/usr/local/google/home/scheib/c/src/out/Release/chrome %U
13 ```
15 Set the default:
17     xdg-settings set default-web-browser chromium-mybuild-c-release.desktop
19 Launch, telling Chrome which config you're using:
21 *   `CHROME_DESKTOP=chromium-mybuild-c-release.desktop out/Release/chrome`
22 *   Verify Chrome thinks it is default in `about:settings` page.
23     *   Press the button to make default if not.
25 Restore the normal default:
27     xdg-settings set default-web-browser google-chrome.desktop
29 Change the default, run, and restore:
31     xdg-settings set default-web-browser chromium-mybuild-c-release.desktop && \
32         CHROME_DESKTOP=chromium-mybuild-c-release.desktop out/Release/chrome
33     xdg-settings set default-web-browser google-chrome.desktop && \
34         echo Restored default browser.