xdg-open fails to identify mime-type except by extension

Bug #362121 reported by Jesdisciple
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: xdg-utils

Ubuntu 8.10
xdg-utils 1.0.2-6

On my system, using xdg-open to access any directory from within the environment (regardless of privileges) prepared by sudo results in the following output:
> Warning: unknown mime-type for "<directory>" -- using "application/octet-stream"
> Error: no "view" mailcap rules found for type "application/octet-stream"
A similar response is returned for text files without extensions. .diff and .txt are opened in less; .sh only triggers an error:
> Error: no "view" mailcap rules found for type "application/x-sh"

Another user reported the first output a few months ago at Bug #323710, and I suspect that a similar factor persists on his system as is produced by sudo on mine. I don't yet have a clue how sudo modifies my environment to trigger this bug.

The strange application choices for known file types are also significant, but I'm not sure whether they are part of this bug.

An exploration of the original symptom (triggered by directories) is available at [ http://ubuntuforums.org/showthread.php?p=7079723 ].

Thanks!
Chris

description: updated
description: updated
summary: - xdg-open fails to identify mime-type of directories
+ xdg-open fails to identify mime-type except by extension
Revision history for this message
stevepowell99 (steve-promente) wrote :

same here - I am using intrepid with awesome window manager but I get it with or without sudo. Exactly the same error message etc

description: updated
Revision history for this message
danmb (danmbox) wrote :

This bug seems abandoned, though there are still mailcap problems in Lucid. The reliance on mailcap is addressed in #220765, so marking as duplicate

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.