FS#50184 - [xdg-utils] xdg-open fails to use chromium
Attached to Project:
Arch Linux
Opened by Shane (sdd76) - Thursday, 28 July 2016, 16:10 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 31 July 2016, 09:30 GMT
Opened by Shane (sdd76) - Thursday, 28 July 2016, 16:10 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 31 July 2016, 09:30 GMT
|
Details
Description:
Running "xdg-open ~/projects" results in the error: /usr/bin/xdg-open: line 781: x-www-browser: command not found I think this may be related to the xdg-open containing chromium-browser instead of just chromium. The chromium package just contains "chromium". Additional info: * package version(s) * config and/or log files etc. You have to have chromium installed. Running xdg-open "http://linux.com" opens chromium correctly. I don't have the BROWSER environment variable set in my zshrc and it isn't in my env. Steps to reproduce: |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Sunday, 31 July 2016, 09:30 GMT
Reason for closing: Fixed
Additional comments about closing: 1.1.1-4
Sunday, 31 July 2016, 09:30 GMT
Reason for closing: Fixed
Additional comments about closing: 1.1.1-4
X-www-browser
Firefox
Ice weasel
Seamonkey
Epiphany
Konqueror
Chromium-browser (this is installed as /usr/bin/chromium)
Www-browser
Links
> xdg-mime query default inode/directory
dolphin.desktop
> xdg query filetype ~/projects
inode/directory
I can actually make the error go away entirely when I updated my ~/.config/mimeapps.list and add the line:
inode/directory=Thunar-folder-handler.desktop
in the [Default Applications] section. So I can get it to work. But that fall-through case is still broken which is why I reported it. The "chromium-browser" executable doesn't exist. When chromium is installed, it is just "chromium". I am a little baffled why it finds dolphin.desktop instead of org.kde.dolphin.desktop. I don't see that anywhere in my mimeapps.list, but meh. That's no big deal. I am mostly concerned about the fall-through case that calls chromium-browser.
andyrtr@workstation64:/home/andyrtr $ cat /usr/share/applications/chromium.desktop | grep -i mime
MimeType=text/html;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
Use mimeopen to set the desired default application. For more:
https://wiki.archlinux.org/index.php/Default_applications#Application_launchers
Looks like a user setup issue, not a bug.
I so see what you're talking about, the xdg-open script is specifically hard-coded to chromium-browser. It should never get there, so this is really a non-issue.
https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=5c990c16f67a2b5856c03c2cb1204b4049e25cde - hardcodes the simple name
https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=5c990c16f67a2b5856c03c2cb1204b4049e25cde - enlarges this with custom default scheme handlers.
You can overwrite the local user mimetype default at any time with mimeopen.
So can we close this one?