summaryrefslogtreecommitdiffstats
path: root/docs/linux_dev_build_as_default_browser.md
diff options
context:
space:
mode:
authorandybons <andybons@chromium.org>2015-08-24 14:37:09 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-24 21:39:36 +0000
commit3322f7611ba1444e553b2cce4de3a1a32ad46e72 (patch)
treedfb6bbea413da0581b8d085b184a5e6ceea5af3e /docs/linux_dev_build_as_default_browser.md
parent5d58c9eb2baa203be1b84ac88cde82c59d72f143 (diff)
downloadchromium_src-3322f7611ba1444e553b2cce4de3a1a32ad46e72.zip
chromium_src-3322f7611ba1444e553b2cce4de3a1a32ad46e72.tar.gz
chromium_src-3322f7611ba1444e553b2cce4de3a1a32ad46e72.tar.bz2
Per https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/irLAQ8f8uGk
Initial migration of wiki content over to src/docs There will be a follow-up CL to ensure docs are following chromium’s style guide, links are fixed, etc. The file auditing was becoming too much for a single change and per Nico’s suggestion, it seems to be better to do + Bulk import with initial prune. + Follow-up CLs to clean up the documentation. So that each CL has its own purpose. BUG=none Review URL: https://codereview.chromium.org/1309473002 Cr-Commit-Position: refs/heads/master@{#345186}
Diffstat (limited to 'docs/linux_dev_build_as_default_browser.md')
-rw-r--r--docs/linux_dev_build_as_default_browser.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/linux_dev_build_as_default_browser.md b/docs/linux_dev_build_as_default_browser.md
new file mode 100644
index 0000000..41226d9
--- /dev/null
+++ b/docs/linux_dev_build_as_default_browser.md
@@ -0,0 +1,20 @@
+Copy a stable version's .desktop file and modify it to point to your dev build:
+ * `cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/chromium-mybuild-c-release.desktop`
+ * `vim ~/.local/share/applications/chromium-mybuild-c-release.desktop`
+ * Change first Exec line in desktop entry: (change path to your dev setup)
+ * `Exec=/usr/local/google/home/scheib/c/src/out/Release/chrome %U`
+
+Set the default:
+ * `xdg-settings set default-web-browser chromium-mybuild-c-release.desktop`
+
+Launch, telling Chrome which config you're using:
+ * `CHROME_DESKTOP=chromium-mybuild-c-release.desktop out/Release/chrome`
+ * Verify Chrome thinks it is default in `about:settings` page.
+ * Press the button to make default if not.
+
+Restore the normal default:
+ * `xdg-settings set default-web-browser google-chrome.desktop`
+
+
+A single line to change the default, run, and restore:
+ * `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.` \ No newline at end of file