You are not logged in.
Hi there... I've been using openbox with Chromium for a while. The speed of both toghether is very good. There is only one thing that make me mad. When I open something I just downloaded with Chromium, somewhy it calls Firefox to open that file. I think the problem is not the browser because when I was in KDE, I could open everything fine directly from Chromium. Even if I chose the 'Show in folder' option, openbox stiil calling firefox for that and it open the directory using file://. What I want to know is if there is some configuration file in Openbox I can change for open things correctly... Thanks, and sory for my english!
Last edited by sironitomas (2010-09-09 18:30:20)
Offline
I have the same problem. A solution would be appreciated!
Offline
I have the same problem. A solution would be appreciated!
Glad that I'm not the only one!
Offline
I think its an xdg-open thing. Chromium probably just calls xdg-open which then uses the mimetype of whatever file it is to figure out what application to use to open it. If there is no mime association set for that type of file, xdg-open generally falls back to opening it in a browser, in your case firefox.
Same with the 'Show in folder' option in chromium. You need to set a xdg mime association for the file type 'application/x-directory'.
A way to set mime filetype associations in an openbox environment are through filemanager programs like pcmanfm or qtfm.
Hope this helps,
Wittfella
Offline
Hey witty
6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop
Offline
I think the file mimetypes are already set, because when I go to system-preferences of KDE, there are hundreds of files with its programs... But the problem still here. I checked and the problem is xdg-open.
Last edited by sironitomas (2010-06-24 13:46:07)
Offline
You can set the default applications (used by e.g. xdg-open) by installing the package perl-file-mimeinfo from the repositories, and invoke the mimeopen command like this:
mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain
1) notepad (wine-extension-txt)
2) Leafpad (leafpad)
3) OpenOffice.org Writer (writer)
4) gVim (gvim)
5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop
video/x-matroska=video-player.desktop
(...)
Last edited by Peanut (2010-06-24 13:57:42)
Offline
also check this:
http://bbs.archlinux.org/viewtopic.php?id=81611
Offline
Thanks Peanut. Problem Solved!!
Offline
You can set the default applications (used by e.g. xdg-open) by installing the package perl-file-mimeinfo from the repositories, and invoke the mimeopen command like this:
mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain 1) notepad (wine-extension-txt) 2) Leafpad (leafpad) 3) OpenOffice.org Writer (writer) 4) gVim (gvim) 5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop video/x-matroska=video-player.desktop (...)
Thanks! This has been bugging me for a while.
Offline
Awesome mimeopen is useful.
But I'm still getting issues with xdg-open and Chromium: xdg-open asks the DE for what to open, and uses xdg-mime as a fallback if no DE is found. I'm using Xfce, and yet want to change my file manager but exo-open (which is what xdg-open calls for Xfce) appears to be locked to calling Thunar. Is there any way around this, say to configure exo-open?
Last edited by zoqaeski (2010-08-13 10:11:16)
Offline
Peanut wrote:You can set the default applications (used by e.g. xdg-open) by installing the package perl-file-mimeinfo from the repositories, and invoke the mimeopen command like this:
mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain 1) notepad (wine-extension-txt) 2) Leafpad (leafpad) 3) OpenOffice.org Writer (writer) 4) gVim (gvim) 5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop video/x-matroska=video-player.desktop (...)
Thanks! This has been bugging me for a while.
i added this to the wiki since i recently found another method and i added this one^^
"They say just hold onto your hope but you know if you swallow your pride you will choke"
Alexisonfire - Midnight Regulations
Offline
How did you solve magnet link handling in Chromium? It first opens firefox, then bittorent manager.
Offline
I know this is a seriously old thread but in case of magnet links (which "mimeopen" refuses to open) you can either:
straightly edit the line 552 in the (/usr/bin/)xdg-open script and add the torrent client before "chromium-browser" or "google-chrome" so that it looks something like this: http://pastebin.com/nt8nDPv9:
or just symlink your torrent client to some of the browsers listed there (e.g. "mozilla" since nothing uses that name anyway).
Problem is now that xdg-open is supposed to open anything else with Chromium/Google Chrome it opens them in that same torrent client. Dunno how often this is gonna happen, though.
Yeah, and for some reason manually adding "x-scheme-handler/magnet=qBittorrent.desktop" to "~/home/det/.local/share/applications/defaults.list" won't do anything, which is why I did it like this.
“Talent you can bloom. Instinct you can polish.” — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.” — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.” — Charles Dubois
Offline
I'm having the same problem. I reported the bug(?) in the arch bug tracker: https://bugs.archlinux.org/task/28011 Feel free to vote for it if it bugs you too (no pun intended ).
"Freedom is the freedom to say that two plus two make four. If that is granted, all else follows." - George Orwell
Offline