-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyperlinks (e.g. in PDFs) open in non-default browser #106
Comments
Also, I noticed that |
Hello @tdanhorn, thanks for the feedback. In reverse order: image/jpeg is the correct mimetype for jpeg images, even if their filename extension is jpg. Some applications do support a hypothetical "image/jpg" mimetype, but there is no need to include it in mimeapps.list in my opinion. There is no bl-www-browser alternative in fact. The Debian alternative x-www-browser already exists and serves the same purpose. Choice of the best application to open certain links can be tricky sometimes, though. Have you tried adding entries for x-www-browser to ~/.config/mimeapps.list, and did it fix the issue? Sometimes, however, a pdf reader might have its own settings for preferred application to open web links. Another place you can look at is It's a complicated topic... |
Hi John, Thanks for the tips. I am not concerned about I did have the issue with hyperlinks opening in chromium, however, until I added the Since Evince is the default PDF viewer in BunsenLabs, I would expect it to honor any setting of the default browser in the distro (whether that is called Thanks for all the great work! |
Well, as I said, I have both Chromium and Firefox installed, and links in pdf files - in both Atril and Evince - open in Firefox for me, without any such entry in mimeapps.list.
bl-www-browser does not exist in a BunsenLabs system. I guess you must have created it. Anyway, I don't think we need any extra config to get this working for users of the default BL system. I suggest you check exo-open as I mentioned above, and also look into
|
Are you talking about a Lithium system? Because I have Hydrogen and Helium, and both have the same issue ... If so, I guess there may be no need for it in Lithium, due to changes in the configuration, although the fact that it works as expected could be coincidence (e.g. order of desktop files in On Hydrogen Regarding |
Apologies - I had forgotten about the bl-www-browser.desktop file, which was added long ago in order to populate menus with an "X Web Browser" entry, because Debian does not ship an x-www-browser.desktop. (We did not want to clash with a filename which might be added in the future, so used the bl- prefix.) But my personal system is running BL Helium, and that's what I was referring to as not having the issue you mention.
~/.local/share/applications/mimeinfo.cache is empty on my system. You can change the default xdg-mime app - that might be the source of your issue. See And don't forget to check |
TL;DR: The reason you get the browser you expect and I don't is not some misconfiguration in my system, but random chance. I think it should not be, so a fix is warranted.
Regarding
The order of lines in that file is irrelevant, but the order of From
This is not true in the literal sense, as shown above, but I think they it indicates that it is meant to be "not significant", i.e. "Don't rely on Since changing the order in |
Different xdg-mime settings between our systems.
Have you tried this? |
Yes:
The reason I submitted this issue is not to ask for help with "my problem". (It works after I did what I am asking for in the original post.) I found a fix that is general and works for all users on all systems, and I wanted to share it. |
OK, to summarize: The bl-* seeded entries in the ~/.local/share/applications/mimeapps.list that we ship in /usr/share/bunsen/skel are there because they are BunsenLabs inventions that no other developers are aware of. The same is not true of sensible-browser and x-www-browser which have already been set up by Debian.
This is expecting too much both of Evince and of a "distro" which is not a full-blown desktop environment like Gnome or KDE. Also, browsers can be quite aggressive in changing default settings when installed. I don't have time to research this further at the moment, but if you want to get to the bottom of it, I would suggest looking into exactly what helper evince calls when asked to open a url. https://wiki.debian.org/DefaultWebBrowser The problem you experienced is not a result of BunsenLabs configuration, but part of the basic Debian system. If it turns out not to be a misconfiguration on your part, then the bug, if there is one, is with one of the Debian utilities, or possibly with evince. But thank you for your input. |
I have chromium installed in addition to firefox-esr (formerly iceweasel), my default browser (which is pointed to x-www-browser and everything linked to that, including bl-www-browser). When I open a hyperlink in a PDF that points to a website, it opens in chromium, instead of my default browser. This is because the mimetype of the link appears to be
x-scheme-handler/http
, and in the relevant entry inmimeinfo.cache
chromium is listed first (alphabetically?). I find this annoying and propose appending something liketo
mimeapps.list
to achieve a defined (and likely desired) behavior.This applies to Hydrogen, Helium, and most likely Lithium (not tested, but
mimeapps.list
is the same).Thank you for your consideration!
The text was updated successfully, but these errors were encountered: