When starting git-annex assistant with:

git-annex webapp

an unwanted web browser is opened.

How does one change the web browser with which the web interface is displayed?

The web browser is started by running the xdg-open program (or just open on Mac OS X).

xdg-open, in turn, runs the desktop environment's kde-open, gvfs-open, exo-open. Which browser these run is configured in the desktop environment's settings. Which is my goal for the web app; it should open the same browser that other applications in the desktop use.

When there's no desktop environment in use, xdg-open falls back to some default browser, or to what's configured by the BROWSER environment variable.

Comment by http://joeyh.name/ Mon Sep 17 15:32:07 2012

On my Ubuntu 10.04 machine, ./git-annex-webapp starts Firefox whereas xdg-open starts my configured standard browser, Chrome.

-ke

Recently the webapp has started honoring git's web.browser setting, so if that's set in ~/.gitconfig, it'll use a different browser than xdg-open does.
Comment by http://joeyh.name/ Thu Oct 11 23:41:36 2012
Comments on this page are closed.