[arch-general] no desktop: howto change default browser?
Hi, when using eg. "evince" to view a PDF document, links open in "epiphany", which seems to be a gnome default browser. I need to change this, but all the links the <search engine> comes up with hint at using menus like "system -> ... -> browser". I only run a window-manager, no desktop, so there's no such thing as a "system" menu entry. I have used "gconf-editor", added the directory chain "~/.gconf/desktop/gnome/url-handlers/{http,https}" with keys "command" -> 'firefox "%s"', "enabled" -> ticked, "needs_terminal" -> not-ticked, but these settings don't help. Does somebody know how to change the setting for default-browser when no desktop is used? clemens
On Sun, Sep 11, 2011 at 08:26:53PM +0200, clemens fischer wrote:
I have used "gconf-editor", added the directory chain
Very few programs still use the GConf settings. Most follow the XDG configuration at ~/.local/share/applications/mimeapps.list: [Default Applications] x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop text/html=firefox.desktop The "x-scheme-handler/*" entries are for "http:" and "https:" URLs respectively, and "text/html" is for opening local HTML files. -- Mantas M.
Excerpts from Mantas M.'s message of 2011-09-11 20:39:20 +0200:
On Sun, Sep 11, 2011 at 08:26:53PM +0200, clemens fischer wrote:
I have used "gconf-editor", added the directory chain
Very few programs still use the GConf settings. Most follow the XDG configuration at ~/.local/share/applications/mimeapps.list:
[Default Applications] x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop text/html=firefox.desktop
The "x-scheme-handler/*" entries are for "http:" and "https:" URLs respectively, and "text/html" is for opening local HTML files.
Is this config file also managed through gconf or something? I mean I really appreciate that it's a text file but it's the first time I heard of it and it seems this kind of stuff changes faster than I can say wtf (text files to xdg files to gconf to other xdg files). I'm really confused. I also wonder what the strange additional strings in there mean, example: application/x-extension-html=userapp-Firefox-3WKO0V.desktop
Le 12/09/11, Philipp Überbacher <hollunder@lavabit.com> a écrit :
Excerpts from Mantas M.'s message of 2011-09-11 20:39:20 +0200:
On Sun, Sep 11, 2011 at 08:26:53PM +0200, clemens fischer wrote:
I have used "gconf-editor", added the directory chain
Very few programs still use the GConf settings. Most follow the XDG configuration at ~/.local/share/applications/mimeapps.list:
[Default Applications] x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop text/html=firefox.desktop
The "x-scheme-handler/*" entries are for "http:" and "https:" URLs respectively, and "text/html" is for opening local HTML files.
Is this config file also managed through gconf or something? I mean I really appreciate that it's a text file but it's the first time I heard of it and it seems this kind of stuff changes faster than I can say wtf (text files to xdg files to gconf to other xdg files). I'm really confused. I also wonder what the strange additional strings in there mean, example: application/x-extension-html=userapp-Firefox-3WKO0V.desktop
Got them too. I think those ones are created together with the desktop file everytime you answer yes when firefox asks you to be your default browser (after every upgrade for example). -- radio ianux - http://ianux.fr/
On Mon, Sep 12, 2011 at 12:50:06AM +0200, Philipp Überbacher wrote:
Is this config file also managed through gconf or something? I mean I really appreciate that it's a text file but it's the first time I heard of it and it seems this kind of stuff changes faster than I can say wtf (text files to xdg files to gconf to other xdg files). I'm really
No. Both GNOME ("Open with"/"Preferred programs") and KDE 4 edit the file directly; Gconf is generally not used anymore for file type associations. See the "MIME Actions specification" on freedesktop: <http://www.freedesktop.org/wiki/Specifications/mime-actions-spec>
confused. I also wonder what the strange additional strings in there mean, example: application/x-extension-html=userapp-Firefox-3WKO0V.desktop
"application/x-extension-html" probably means all files having the '.html' extension, regardless of automatically-determined MIME type. (For example, if you rename a .jpeg file to .html, it will *still* be detected as image/jpeg, but matching by extension will take priority.) "userapp-*.desktop" files are created when you manually specify the path to your program in the "Open With..." window (the 'other' choice).
Excerpts from Mantas M.'s message of 2011-09-12 08:58:40 +0200:
On Mon, Sep 12, 2011 at 12:50:06AM +0200, Philipp Überbacher wrote:
Is this config file also managed through gconf or something? I mean I really appreciate that it's a text file but it's the first time I heard of it and it seems this kind of stuff changes faster than I can say wtf (text files to xdg files to gconf to other xdg files). I'm really
No. Both GNOME ("Open with"/"Preferred programs") and KDE 4 edit the file directly; Gconf is generally not used anymore for file type associations.
See the "MIME Actions specification" on freedesktop:
<http://www.freedesktop.org/wiki/Specifications/mime-actions-spec>
confused. I also wonder what the strange additional strings in there mean, example: application/x-extension-html=userapp-Firefox-3WKO0V.desktop
"application/x-extension-html" probably means all files having the '.html' extension, regardless of automatically-determined MIME type. (For example, if you rename a .jpeg file to .html, it will *still* be detected as image/jpeg, but matching by extension will take priority.)
"userapp-*.desktop" files are created when you manually specify the path to your program in the "Open With..." window (the 'other' choice).
Ok, thanks for the explanation, that makes it a bit clearer. I still wonder which role the xdg-* tools play though. They're CLI-tools written in bash, which one might think are supposed to help non-DE-users deal with those settings, but if you try to use them without a DE running they won't let you. At least that's true for xdg-settings, here's an example: $ xdg-settings --list Known properties: default-web-browser Default web browser xdg-settings get default-web-browser xdg-settings: unknown desktop environment
Mantas M. wrote:
On Sun, Sep 11, 2011 at 08:26:53PM +0200, clemens fischer wrote:
I have used "gconf-editor", added the directory chain
Very few programs still use the GConf settings. Most follow the XDG configuration at ~/.local/share/applications/mimeapps.list:
[Default Applications] x-scheme-handler/http=firefox.desktop x-scheme-handler/https=firefox.desktop text/html=firefox.desktop
The "x-scheme-handler/*" entries are for "http:" and "https:" URLs respectively, and "text/html" is for opening local HTML files.
Bingo-Bongi! You get to wear the masters hat and here's the cookie O! clemens
* clemens fischer <ino-news@spotteswoode.dnsalias.org> [11.09.2011 20:35]:
Hi,
when using eg. "evince" to view a PDF document, links open in "epiphany", which seems to be a gnome default browser.
I need to change this, but all the links the <search engine> comes up with hint at using menus like "system -> ... -> browser". I only run a window-manager, no desktop, so there's no such thing as a "system" menu entry.
I have used "gconf-editor", added the directory chain "~/.gconf/desktop/gnome/url-handlers/{http,https}" with keys "command" -> 'firefox "%s"', "enabled" -> ticked, "needs_terminal" -> not-ticked, but these settings don't help.
Does somebody know how to change the setting for default-browser when no desktop is used?
clemens
Howdi Clemens Put export BROWSER=your_browser into your bashrc, zshrc or into a file you put into /etc/profile.d, depending on what you want.
Uli Armbruster [2011-09-11T21:50 CEST]:
* clemens fischer <ino-news@spotteswoode.dnsalias.org> [11.09.2011 20:35]:
Hi,
when using eg. "evince" to view a PDF document, links open in "epiphany", which seems to be a gnome default browser.
[...]
Does somebody know how to change the setting for default-browser when no desktop is used?
Put
export BROWSER=your_browser
into your bashrc, zshrc or into a file you put into /etc/profile.d, depending on what you want.
some application (in my case e.g. google earth) doesn't work correctly by putting BROWSER variable into ~/.zshrc. I've solved by putting the following into ~/.xprofile: BROWSER='/usr/bin/firefox' export BROWSER -- It is perfectly possible, in theory and historically, to have efficient and courteous police, competent and learned judges, and a body of systematic and socially accepted law—and none of these things being furnished by a coercive government. --Murray N. Rothbard
F.Gr. wrote:
Uli Armbruster [2011-09-11T21:50 CEST]:
Put
export BROWSER=your_browser
into your bashrc, zshrc or into a file you put into /etc/profile.d, depending on what you want.
some application (in my case e.g. google earth) doesn't work correctly by putting BROWSER variable into ~/.zshrc. I've solved by putting the following into ~/.xprofile:
BROWSER='/usr/bin/firefox' export BROWSER
That's odd. I tried "env BROWSER=firefox evince <some-PDF-document>", but evince would continue to use epiphany. But thanks for the hint! I wonder why the "$BROWSER standard" isn't honoured by evince. clemens
participants (6)
-
clemens fischer
-
F.Gr.
-
ianux
-
Mantas M.
-
Philipp Überbacher
-
Uli Armbruster