| View previous topic :: View next topic |
| Author |
Message |
gagern n00b


Joined: 26 Nov 2003 Posts: 54
|
Posted: Mon Nov 06, 2006 4:15 pm Post subject: wxGTK Mime Type information refers to uninstalled epiphany |
|
|
I encountered this when running boinc_gui from sci-misc/boinc-5.4.11. Clicking on one of the Buttons that should open a project specific URL I only got a message on stderr:
This makes sense, as I don't have epiphany installed. I've set USE=-gnome usually, as I'm using KDE mainly. Question was, why does boinc_gui think it should use epiphany to open such URLs. I traced the problem through the boinc sources and came up with some code in boinc-5.2.14/clientgui/hyperlink.cpp that looks up the wxWidgets Mime Type information for text/html (using wxMimeTypesManager) to figure out the browser. Strange approach, but I can understand why this should still work in most cases.
Next I took the mimimal sample from the wxGTK-2.6.3 sources and tweaked it to replicate the function from boinc_gui. Same result, so it's nothing boinc-specific, but at least common to all wxWidgets apps. Looking at the wxGTK sources was none too helpful, except I found that there should be some support for KDE as well.
More useful was an strace of this tweaked application. I found out that the string "epiphany" was read only from /usr/share/mime-info/gnome-vfs.keys where it is in fact given for text/html. My KDE file associations don't mention epiphany.
- Is this a problem with wxGTK that causes Gnome information to take precedence over KDE no matter what the user actually uses?
- Is the presence of an unconfigured gnome-vfs.keys file a bad configuration that could somehow be avoided?
- Is there some simple switch somewhere to choose whether to use Gnome or KDE Mime info?
- Is there some way to make all my KDE bindings available to Gnome VFS aware apps as well?
This whole setup as it is is does not work out of the box, and making it do so would be a nice thing. |
|
| Back to top |
|
 |
mc_barron Apprentice


Joined: 28 Aug 2003 Posts: 230 Location: Chicago, IL
|
Posted: Wed Jan 31, 2007 6:16 am Post subject: |
|
|
This is an EXCELLENT question - I came across the same annoyance with my install of Boinc (recently installed for the first time). I also have "-gnome" and no peiphany browser installed.
Anyone out there have any good answers?
UPDATE:
Found a workaround: just create an executable file named "epiphany" somewhere in your PATH with the following in it:
/usr/bin/firefox $* |
|
| Back to top |
|
 |
gagern n00b


Joined: 26 Nov 2003 Posts: 54
|
Posted: Mon May 07, 2007 8:43 am Post subject: |
|
|
I filed bug 176578 about this issue.
And made epiphany a symlink to firefox on my own system.  |
|
| Back to top |
|
 |
Lucio n00b

Joined: 05 Dec 2005 Posts: 8
|
Posted: Sat May 26, 2007 9:05 am Post subject: |
|
|
Hi
I've two boxes running gentoo and Boinc; and epiphany is not installed.
On one box, i've seen that epiphany was the trouble; i made the same workaround as nc_barron; it works.
On the second one it calls gedit!!! i've tried to found why it was the case... no success.
A second point:
One day i've clicked on the "Show Graphics" and got a beautiful display.
Never been able to see it again.
Lucio. |
|
| Back to top |
|
 |
|