Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 258559

Summary: openoffice should not become the default application for text/plain mime type
Product: Gentoo Linux Reporter: Alexander E. Patrakov <patrakov>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal CC: serkan
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander E. Patrakov 2009-02-11 06:59:55 UTC
www-client/epiphany-2.22.3-r11 applies the following logic for selecting an application for its "Page Source" command:

app = g_app_info_get_default_for_type (mime_type, FALSE);

where mime_type is "text/plain". However, by default this ends up in preferring app-office/openoffice-3.0.0 over app-editors/gedit-2.22.3 when both are installed (and openoffice won't show the page source).

Reproducible: Always

Steps to Reproduce:
1. Emerge gnome, this will pull epiphany in. Don't customize any preferences.
2. Emerge openoffice. Again, don't customize any GNOME preferences.
3. Visit any web page with Epiphany, then attempt to view page source.

Actual Results:  
OpenOffice opens the HTML page and renders it.

Expected Results:  
Gedit should show the page source.

Yes, I can create an empty text file, right-click on it, and in the properties remove openoffice from the list of possible openers (but it is not an intuitively obvious fix for the original problem with epiphany). This helps, but IMHO openoffice should, in the first place, never become a default opener for text/plain files.
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-11 23:04:01 UTC
Gnome, I haven't a clue how the mimetype magic happens. Please assign to the right place if I hit the wrong maintainer.
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-02-27 07:30:25 UTC
CC'ing openoffice.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-25 12:21:51 UTC
Can't reproduce this here, gedit is the default on my machine, don't quite know which info I could provide here (we are a normal consumer of the gnome mime-type stuff), so removing OOo herd again
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-11-25 12:41:09 UTC
This is a bug in epiphany/mime-type handling.

*** This bug has been marked as a duplicate of bug 242460 ***