Mime-type question Gnome

In Gnome I noticed something very strange. If I take an HTML file and name it helloworld.htm or helloworld.html then it shows up as a Mozilla bookmark with a mozilla bookmark icon. If I change the name to just "helloworld" then it lists as an html page.
This isn't a huge problem, mostly aesthetic because the html icon is nicer, but does anyone have any idea of how to get the files with html extensions to show up as html pages and not bookmarks?
I have the following mime related files installed:
current/mime-types 1.0-1
    Provides /etc/mime.types
extra/gmime 2.2.10-1
    Core mime parsing library
extra/gnome-mime-data 2.18.0-3 (gnome)
    The base MIME and Application database for GNOME
extra/nail 11.25-2
    A mail user agent derived from Berkeley Mail 8.1 and contains builtin
    support for MIME messages and IPv6
extra/perl-file-mimeinfo 0.14-1
    Determine file type
extra/perl-mime-lite 3.01-1
    Perl module that provides lightweight MIME generator
extra/shared-mime-info 0.22-1
    Freedesktop.org Shared MIME Info
community/mime-editor 0.5-1 (rox-desktop)
    Shared-mime info database editor, useful for changing MIME-type info in rox
    applications
community/pantomime 1.2.0pre2-1
    A set of Objective-C classes that model a mail system
community/perl-mime-parser 5.420-2
    Perl/CPAN Module MIME::Parser : Parses streams to create MIME entities
community/perl-mime-types 1.19-2
    Perl/CPAN Module MIME::Types : Information and processing MIME types
community/synce-libmimedir 0.4-1
    provide a means of communication with a Windows CE device - library that
    parses MIME Directory Profile.

neodreams wrote:I have the same problem, you're not alone
That does make me feel better... but no one honestly has any idea of how to fix this???

Similar Messages

  • Gnome: mime types, file associations and defaults.list

    I installed the new Gnome 2.8 during the weekend and now my file type associations is completely bloated. The mime system is intact - Nautilus recognises files properly. However, Nautilus doesn't know which applications to open a specific file with. I have read other posts and found useful information, but not the solution.
    This post in FedoraForum gave me a hint to what's causing the problem:
    http://fedoraforum.org/forum/showthread … post127530
    It seems that the file defaults.list is missing from /usr/share/mime/applications. Apparently this file contains the associations  between applications and mime types. I have not be able to find out which package should provide this file or how to recreate it. Can anyone help - maybe provide the name of the package that provides this file?
    Thanks,

    Yeah, I got tired of Evolution not knowing about opening *.docs in openoffice.  After several hours of research, the key is the /usr/share/applications/mimeinfo.cache,  /opt/gnome/share/applications/mimeinfo.cache, and the MimeType fields in the *.desktop files.  The mimeinfo.cache in /usr was empty and the /opt one had gthumb and other apps but no OO:
    [MIME Cache]
    application/x-gnome-stones=gnome-stones.desktop
    image/jpeg=gthumb.desktop
    application/postscript=ggv.desktop
    ...snip...
    That's a lot of blather to say that the fix for Evolution/OpenOffice was to add the proper MimeType entry to /usr/share/applications/ooo645writer.desktop:
    MimeType=application/vnd.ms-word;application/msword
    and then run "update-desktop-database".  Problem solved.
    Another problem is that within Evolution it says an attached doc is a "application/msword" and not a "Microsoft Word Document".  Unfortunately this is because freedesktop.org decided to use application/vnd.ms-word instead of application/msword like the rest of the world.  If you check the vnd.ms-word entry in /usr/share/mime/packages/freedesktop.org.xml it defines an alias msword but the new mime system doesn't appear to recognize aliases yet.  The solution I used was to rename the entry to msword.  Another possible solution might be to remove the msword alias from the vnd.ms-word entry and create a new msword entry based on the vnd.ms-word one.  Then run "update-mime-database /usr/share/mime".  Hope that made sense.
    I think the defaults.list is part of the previous GNOME MIME setup cause I don't have one and I'm not experiencing any problems.  For other apps check for the associations in the mimeinfo.cache's and if missing add the MimeType's to the app's *.desktop.

  • Gnome: every file has mime-type text/plain

    since yesterday (i did some updates with pacman but i dont know what packages...) my gnome (nautilus) wants to open ERVERY file with the text editor because it wrongly determines the mime-type text/plain for all files.
    what happened?

    http://bbs.archlinux.org/viewtopic.php?pid=384949

  • Mime type issues: x-directory/normal vs. inode/directory

    Sorry for the long post. If you have no time, just read the third paragraph, starting with "Of course..."
    I am using KDE and I have a problem with the mime types for directories. As Gnome, too, KDE manages mime types itself to offer easy customizability by means of GUIs. Obviously, KDE programs natively adhere to these settings. When a non-KDE application wants to open a file of a certain mime type, it should call "xdg-open" which checks for the desktop environment and the calls the "kde-open" script to use KDE's own mime type hierarchy. However, when a program does not call "xdg-open", the (by now ancient) /usr/share/applications/mimeinfo.cache is read. This file is created by /usr/bin/update-desktop-database, which is executed in many PKGBUILDs (well, actually the .install files) to update mime information after installation.
    The problem I am running into is that Zotero, a Firefox extension for bibliography management, does not open Dolphin, KDE's file manager, but EasyTag, a music file ID tag editor whenever a folder is supposed to be opened. A quick look at /usr/share/applications/mimeinfo.cache shows that Dolphin is registered as an application for the mime type "inode/directory", but not for "x-directory/normal", for which EasyTag is registered. Simply adding Dolphin as the first app in the array for "x-directory/normal" solves the problem, but only until the next update of a program calling /usr/bin/update-desktop-database. I thus wrote an alias command to call a selfmade script which uses sed to rectify this after each call of update-desktop-database.
    Of course, this is not a nice solution. Thus my question (Google didn't help much): What is the standard mime type for directories? AFAICT, it should be "inode/directory", but what, then, does "x-directory/normal" do and why is it used? What should the solution be? Should Dolphin register the additional mime type?
    I suspect an error on behalf of the KDE devs as I just realized that a few other KDE programs don't claim certain mime types, either: Okular does not claim "application/pdf". The GIMP, however, does, even though it cannot handle this mime type.
    Thanks for your patience.

    skottish wrote:You can override the system level mimeinfo.cache with your own copy in ~/.local/share/applications. Only put in the stuff that you want; There's need to copy the whole file.
    An even better workaround. Nice!
    skottish wrote:Slightly off topic, but GIMP can open PDF files.
    Not here: "Opening '/home/user/test.pdf' failed: Unknown file type"
    Last edited by mutlu_inek (2009-08-08 21:49:37)

  • How to change default application associated with some mime types?

    When we install some new program, for example GIMP, I assume the newly installed program is added to some mime type database, and the /usr/share/applications/mimeinfo.cache file is automatically generated.
    Using my example, GIMP will be the default application for all its registered mime types, even application/pdf. I surely don't want this to happen, and I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I wrote a script to modify the mimeinfo.cache file, and it seems to work great. However, after a reboot or upgrade or something I didn't notice, the default application of application/pdf is reconfigured to GIMP. I think the cache suffix of the file indicates that it is just a cache and may be changed by system unnoticed. So I am looking for a new way to change the default applications.
    As far as I know or guess from the phenomena, there should be some system utility that generates the mimeinfo.cache file, it seems to parse all the *.desktop files under /usr/share/applications and register them to certain mime types accordingly. The sequence of the *.desktop files get parsed seems to be related to the time the application is installed, and the newly installed applications seems to be parsed later and inserted in the front of the application list or be parsed earlier and appended to the application list. Is there some place I can change the sequence of the parsing? Or is there some place I can change the behavior of the system utility?
    I know that I can populate my ~/.local/share/applications/mimeapps.list to override the system wide defaults, however, I want a more elegant way to this.
    Any opinion on this is welcomed.
    Last edited by AugustePop (2010-05-14 05:47:15)

    Ah, right. Don't know what DE you are on, but in Gnome:  right-click a (e.g. pdf) file -> Preferences -> Open with.
    All Applications listed there will be available from the right click menu, the marked one will be used on double-click.
    errgrh...
    I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I guess what I am trying to propose is this: "de-prioritize" GIMP in its .dekstop file for the types you dont want it to be associated with, and manually add it back in through "Open With" for the file types you want it to be an option. Not sure if this is solving anything for you though
    Last edited by hokasch (2010-05-14 10:28:57)

  • Print HTML using JPS API.. How to configure printer MIME-TYPE as text/html

    Hi All,
    I have to print the HTML pages.. for this i have used JPS API , but i found that my printer doesnt supoort Mime-type(Flavour) text/html.
    Can someone help me in this ...
    i) Can i configure my printer for this Mime-type , if yes then HOW?
    ii) Is there any work around ?
    Thank you all in advance :)

    I reposted this question in the Database forum. Admin can feel free to delete this thread.
    The answer is to add this at the top: htp.addDefaultHTMLHdr(false);
    Thanks,
    T.
    Edited by: 855677 on May 3, 2011 9:35 AM

  • Quicktime not playing SMIL mime type

    I was trying to stream some audio of file type .smil. The computer in question did not have Real Player installed, so the finder started a QuickTime Player to play the file. The player failed to load and play the file. In fact, when the file in question was dragged to the player, it wasn't recognized.
    In the QuickTime Prefs, Advanced, Mime Types, SMIL 1.0 was unchecked. I checked it, but the QuickTime Player's behavior didn't change.
    Is it the case that another player, such as RealPlayer, must be installed to play those files? Or is there a way to get QuickTime to play them? Or ... ?
    Mac Mini   Mac OS X (10.4.3)  

    No, my question hasn't really been answered ... but it's been sort of addressed in another forum, kind of. Might as well get this question off the board.

  • Libreoffice mime-type icons

    Hi,
    i'm curious to know if i'm the only that have ugly mime-type icons for LibreOffice files (.odt .doc .ods ...)
    Before
    I like to see the original LibreOffice mime-type icons, so after a lot of research on the web i've found the solution.
    Following this http://standards.freedesktop.org/shared … atest.html
    The applications mime-type action are stored under /usr/share/mime/packages.
    Here you can find /usr/share/mime/packages/libreoffice.xml the LibreOffice mime-type file and if you open it you'll find something like that:
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    In order to see the original icon in Nautilus / Dolphin you simply have to add a line of code that call the proper mime-type icon for example:
    <icon name="libreoffice-oasis-text"/>
    You have to do this for every mime-type type.
    The follow example is for "OpenDocument Text"
    <mime-type type="application/vnd.oasis.opendocument.text">
    <comment>OpenDocument Text</comment>
    <glob pattern="*.odt"/>
    <icon name="libreoffice-oasis-text"/>
    <magic>
    <match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
    </magic>
    </mime-type>
    And after this work you can see something like this in Nautilus / Dolphin
    After
    If someone if interested i can post the updated libreoffice.xml file.
    mod edit: Hello gspe, please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
    Last edited by fsckd (2011-11-07 20:05:21)

    After a bit more research i've found the correct solution for the problem.
    The problem actually is that the libreoffice mime-type icons follow a wrong naming.
    For example if you go in /usr/share/icons/gnome/48x48/mimetypes
    libreoffice-oasis-text.png
    shoud be
    application-vnd.oasis.opendocument.text.png
    And so on for all entry in /usr/share/mime/packages/libreoffice.xml

  • How to specify application by extension rather than mime type (e.g., docx as word, not xml)

    When I try to open a link to a file.docx or file.xlsx, FF sees it as an xml file and wants to open it in my default xml application. I can select Word or Excel (I have Office 2010 installed), but a) it doesn't remember that in the applications list, so I have to browse applications each time, or b) if I set it to always use that type, it tries to open docx in Excel or xlsx in Word, depending on last usage. How can I specify applications by file extension instead of seeing these as the same type of file?
    Thanks,
    Ian
    FF 15.0.1, Win 7, Office 2010

    I don't know if the source server sends the right mime type - it probably doesn't. In fact, now you mention it, I'm not sure I've tried this from any sites except one, which is the one giving me problems. I'll try contacting them about fixing their mime types. Assuming though that they can't or won't fix it, the question still remains - is it possible to set application by extension rather than by mime type?
    Yeah, I can definitely save it and open it, just trying to take the easiest possible route for a quick view.
    Thanks.

  • Evince and mime types

    Since the last update of evince to 0.83 it won't open pdf files no more - I get:
    Unable to open document
    Unhandled MIME type: "application/pdf"
    Is this a bug?
    I can open pdfs using kpdf or kghostview without a problem.

    This one seems to be back, newest version.
    $ pacman -Qi evince
    Name : evince
    Version : 2.22.2-2
    URL : http://www.gnome.org
    Lizenzen : GPL
    Gruppen : gnome-extra
    Stellt bereit : Nichts
    Hängt ab von : libspectre>=0.2.0 gsfonts poppler-glib>=0.8.3
    libdjvu>=3.5.20 gnome-icon-theme>=2.22.0 t1lib
    libglade>=2.6.2 gnome-keyring>=2.22.2
    shared-mime-info
    Optionale Abhängigkeiten: Nichts
    Benötigt von : Nichts
    Konflikt mit : Nichts
    Ersetzt : Nichts
    Installationsgröße : 4696,39 K
    Packer : Unknown Packager
    Architektur : i686
    Erstellt am : So 08 Jun 2008 16:19:28 CEST
    Installiert am : So 29 Jun 2008 19:09:16 CEST
    Installationsgrund : Ausdrücklich installiert
    Installations-Skript : Ja
    Beschreibung : Simply a document viewer
    EDIT: Rolling your own as suggested by phorgan1 worked, again.
    Last edited by Captain Spaulding (2008-06-29 17:17:03)

  • Excel Mime Type

    I am creating a web-based application and the PHP server needs a bit of information that is provided by the browser, the mime type of a file upload, particularly an Excel file.
    In Safari 3, on my Mac, the mime type for .xls files is application/vnd.ms-excel and using this in my code works perfectly. However, I'm not sure this is the same for a Windows based Safari 3. This would change wouldn't it? Im guessing that the mime type for Windows is application/excel but I would like confirmation please. Can someone confirm the mime type for .xls files using Safari 3 for Windows?
    Thanks for reading, and have a great holiday season!

    wow, i forgot about this post, but just noticed that i had an unresolved question. i found my answer, it's the same mime type for windows as it is for mac. application/vnd.ms-excel

  • Mime types / wsrp

    Hi all,
    I'm trying to display an excel spreadsheet from within a jsp in a portlet over wsrp.
    Whenever I make a request from the consumer, I get the error:
    java.lang.IllegalArgumentException: MIME type [application/vnd.ms-excel] is not supported by the consumer/portal. Supported types(s) is(are) [ text/html  text/xml  application/xml  application/xhtml+xml  text/plain  image/png  */* ].
    and looking at the wsrp request sent over by the consumer, the mimeTypes it says it supports are:
    <v1:markupParams>
    <v1:secureClientCommunication>false</v1:secureClientCommunication>
    <v1:locales>en-GB</v1:locales>
    <v1:locales>en</v1:locales>
    <v1:mimeTypes>text/html</v1:mimeTypes>
    <v1:mimeTypes>text/xml</v1:mimeTypes>
    <v1:mimeTypes>application/xml</v1:mimeTypes>
    <v1:mimeTypes>application/xhtml+xml</v1:mimeTypes>
    <v1:mimeTypes>text/plain</v1:mimeTypes>
    <v1:mimeTypes>image/png</v1:mimeTypes>
    <v1:mimeTypes>*/*</v1:mimeTypes>
    <v1:mode>wsrp:view</v1:mode>
    My question is how do I get my consumer to support additional mimetypes?
    I am using WLP 10 MP1.
    Thanks

    This can be solved in different ways.
    1) You can use custom data transfer.please go through the below link
    http://edocs.beasys.com/wlp/docs81/wsrp/custxfer.html
    2) Use resource url tag library in your view on producer.
    3) User resource proxy servlet on Consumer.
    <!-- Proxy servlet to serve resources from producers -->
    <servlet>
    <servlet-name>com.bea.wsrp.consumer.resource.ResourceProxyServlet</servlet-name>
    <servlet-class>com.bea.wsrp.consumer.resource.ResourceProxyServlet</servlet-class>
    <init-param>
    <param-name>resourceHeaderFilter</param-name>
    <param-value>com.bea.wsrp.consumer.resource.CustomResourceHeaderFilter</param-value>
    </init-param>
    </servlet>
    CustomResourceHeaderFilter.java:
    package com.bea.wsrp.consumer.resource;
    //import com.bea.p13n.util.debug.*;
    import com.bea.wsrp.consumer.resource.ResourceHeaderFilter;
    import com.bea.wsrp.consumer.resource.ResourceHeaders;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletContext;
    import java.util.*;
    public class CustomResourceHeaderFilter implements ResourceHeaderFilter
    private static final HashSet requestHeadersToSkip = new HashSet();
    // Debug
    //private static final Debug debug =Debug.getInstance(DefaultResourceHeaderFilter.class);
    private static final Logger LOGGER = LoggerHelper.getLogger(CustomResourceHeaderFilter.class);
    // By default, the following request headers will not be proxied private static final HashSet requestHeadersToSkip = new HashSet();
    static
    //requestHeadersToSkip.add("get");
         //requestHeadersToSkip.add("post");
         //requestHeadersToSkip.add("host");
         //requestHeadersToSkip.add("cookie");
         //requestHeadersToSkip.add("expect");
    public ResourceHeaders getPassThroughHeaders(HttpServletRequest request, ServletContext context, String url)
         //request.getSession().getId()
    ResourceHeaders passThroughHeaders = new ResourceHeaders(); List passThroughValues;
    // All headers
    Enumeration headerNames = request.getHeaderNames();
    while(headerNames.hasMoreElements())
    String name = (String) headerNames.nextElement();
    if(requestHeadersToSkip.contains(name.toLowerCase()))
    continue;
    passThroughValues = new LinkedList();
    Enumeration values = request.getHeaders(name);
    while(values.hasMoreElements())
    String value = (String) values.nextElement();
    LOGGER.info("[Sending] " + name + ": " + value);
    passThroughValues.add(value);
    if (passThroughValues.size() > 0)
    passThroughHeaders.addHeader(name, passThroughValues);
    return passThroughHeaders;
    }

  • Managing mime types from the Admin Console

    Hi,
    The following documentation found at http://e-docs.bea.com/wls/docs60////servlet/admin.html
    states that
    default mime types for a web application can be set from the Administration
    Console:
    WebLogic Server Administration Console
    Use the WebLogic Server Administration Console to set the following
    parameters:
    HTTP parameters
    Log files
    URL rewriting
    Keep alive
    Default MIME types
    Clustering parameters
    URL mapping for virtual hosting
    I have several questions:
    1. If this is accurate, how?
    2. What are the default mime types for a web application?
    thanks, mike

    Starting from WebLogic 12.1.2, Coherence servers are just regular Managed Servers. They're managed equally to avoid confusion.
    Create a regular managed server and in the "Coherence" tab of this managed server you can set if this instance will be storage-enabled or even if will share HttpSession through Coherence web.
    All Coherence managed servers should be part of the same Coherence cluster, in order they can exchange data.
    Check this link for more information: 12 Configuring and Managing Coherence Clusters
    Cheers,
    Ricardo Ferreira

  • Ssrs and script from was blocked due to mime type mismatch

    Hi
    I'm trying to add a script to my header on my SSRS report. I've been following this link:
    http://blogs.infosupport.com/reporting-services-javascript-injection/
    I get error stating:
    SEC7112: Script from http//####/HCCReportsServer?/ReportsLibrary/script.js was blocked due to mime type mismatch
    My code:
    ="<a href=""javascript:eval(unescape('function addScript(scriptFile){var head = document.getElementsByTagName(\'HEAD\')[0]; var script = document.createElement(\'script\'); script.setAttribute(\'language\', \'JScript\'); script.setAttribute(\'type\', \'text/Javascript\'); script.setAttribute(\'src\', scriptFile); head.appendChild(script);} addScript(\'http://dc1-sqlrs-d02/HCCReportsServer?/ReportsLibrary/script.js\');'))"">inject</a>"
    Please help. This is urgent to get it working for a demo.
    Thanks

    Hi Sunette,
    Based on my understanding, you come across an SEC7112 error when you inject JavaScript into the Reporting Services.
    In your scenario, you should remove the below setting in the web.config file(Location: C:\inetpub\wwwroot\wss\VirtualDirectories\<your port>).
    <add name="X-Content-Type-Options" value="nosniff" />
    As we tested in our environment(SQL Server 2012,SharePoint 2013,IE 11), we can inject JavaScript successfully. Please refer our test steps and results:
    1. Delete “X-Content-Type-Options" with value "nosniff" within the web.config file (Location: C:\inetpub\wwwroot\wss\VirtualDirectories\80).
    2. Design the report as below, then deploy the report to the SharePoint site.
    3. Create the script.js file with code below, and upload to the SharePoint site.
    function test()
    alert("The CHANGEME textbox will actually change…");
    //var doc = window.frames[1][1].document;
    var el = document.getElementsByTagName('span');
    for (var nr=0; nr<el.length; nr++)
    if (el[nr].innerHTML == "CHANGEME")
    el[nr].innerHTML = "I FEEL LIKE A CHANGED TEXTBOX";
    4. Run the report. Click the “inject”->”test”, the final results should look like below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Trouble shooting- MIME type "application/x-shockwave-flash"

    I am experincing a problem with watching youtube videos. This problem is exactly like Subtitlemewrong's problem which stated...
    "I received only the December '07 update of Quicktime (7.4) and Security Update (2007-009 1.1). That's it. And then my life went to shambles and flash content no longer displays on the web!"...
    "A website with flash content won't load, instead I get a block icon with a question mark and a message saying, "The page "Page Title X" has content of MIME type "application/x-shockwave-flash". Because you don't have a plug-in installed for this MIME type, the content can't be displayed." Sometimes I get directed to the Adobe site for Flash, which I'll download. But that doesn't do anything either."
    I tried the solution that was given by Klaus1 and it didn't work. I uninstalled using http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2
    Then I tried to install using http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash. I clicked on powerpc -based mac and started to install and recieved taht same message that I didn't have the plug-in installed this MIME type.
    Thanks for you help.

    Yeah, I already tried it under a different account. Unfortunately the new account had the same problem. I appreciate the suggestion. My only logical guess is that the new update to quicktime doesn't mix with 10.3 Panther. I am planning on upgrading to Leopard next week after I get my paycheck. Who knows, maybe those guys will know how to fix it, but so far...no luck. Thanks.

Maybe you are looking for

  • Outgoing payment  PLD-for Bank transfer

    Hi all, i want to display bank name,branch,amount in row level if i am doing bank transfer. our normal pld dosn't display details for bank transfer. Regards, Chetan.

  • Deliver distribution

    Hi,. Deliver email reciepent list i have added required users but ans started email agent but mails are not going based on username available in the list and once i scheduled this it is not trggering automatically thanks

  • Videos on iWeb

    Please excuse my basic question: 1. Can you put videos on the websites on iWeb and if so how large can they be? 2. I have a small business and think a iWeb may be low-maintanence enough to set something up on. Do people use iWeb for this or is it gen

  • Latest photo on the top, please

    On iPhoto it's easy to sort the picture and put the latest photo on the top. Now on Photos this option is totally gone and I have to scroll down and down and down till I passed all my 6xxxx pictures or 1xx iPhoto events. Not everyone has a MacBook Pr

  • Accessing stored videos and songs

    I have my ipod set up to work as a hard drive. I would like to be able to access my video files that I have installed through itunes so I do not need to store duplicates when transferring them between computers. I found :\ipod_control\music, (hidden