Changed mime type associations !

I recently installed gimp, and now when I open any downloaded pdf files, they are opened in gimp.
Files previously downloaded and saved are however opened in 'evince'. I use open-box, Chromium, Rox-filer and evince, as DE, browser, file-manager and document viewer respectively.
I searched the wiki and found two entries that I thought might help, Default Applications and Custom file associations, I've tried both user specific options in these pages, here are the files I created:-
[bance@archbox ~]$ cat .local/share/applications/defaults.list
[Default Applications]
pdf=evince.desktop
[bance@archbox ~]$ cat .local/share/applications/evince.desktop
[Desktop Entry]
Name=Evince
Exec=/usr/bin/evince
MimeType=application/x-evince
Icon=evince
Terminal=false
Type=Application
Categories=DocumentViewer
Comment=
Neither of these has worked, do the files look ok? Have I made a mistake somewhere?
OK whilst writing this post, I noticed that I have a file /usr/share/applications/mimeinfo.cache, It contains a list of mime type associations, would editing this work?
TIA Steve

you need!! the inode/directory setting in the mimetype list.  That's what chromium reads to autopen your file manager. 
Make sure it matches the .desktop file appropriate for your file manager.  In the case of spacefm, it is not spacefm.desktop as you might expect, it is spacefm-folder-handler.desktop.
Check your .desktop files for your fm.
If you're still having trouble, you might want to post your mimeapps.list
I noticed in post1 you were using defaults.list instead.  Reading the wiki is not super clear on this, but since I downloaded the pkg 'mimeo' I used mimeapps.list instead.
I assume you read the file extension portion of the chromium part of the wiki:
https://wiki.archlinux.org/index.php/Ch … sociations
Moderator: Please take care to not duplicate entries when you forgot some information. Use the "Edit" button instead. And if you did inadvertently as in this case, please notify the moderators with the "Report" button so they can take action.
Deleting the doubled entry. -- bernarcher
Last edited by bernarcher (2013-02-03 02:00:49)

Similar Messages

  • [CLOSED] Graphical file/mime type association editor?

    Is anyone aware of a general-purpose (i.e. not belonging necessarily to one of the major DEs) file/mime type association editor? I'd like to be able to change the default applications of a given file-type independently of the DE. In particular, I'd like to know how to set a default file manager.
    Last edited by nbtrap (2011-10-31 19:39:10)

    It doesn't look like there is a desktop-independent GUI for editing filetype associations. As far as I now understand, the concept itself it practically meaningless since DEs that conform to xdg standards have their own sets of associations. At any rate, the xdg-* tools are actually quite easy to work with. And I don't see any difference between mimeo and xdg-open. Thank you both for your help.

  • Can changing mime types on server fix QTL in Quicktime X

    Can changing mime types on server fix QTL in Quicktime X
    Is there anything we can do on the server end to make Quicktime X recognize QTL files?
    We found that changing .qtl files to .mov files fixed it, but we have hundreds of .qtl files and it would be much better if we could change the mime type on the server to something that Quicktime X would recognize.
    -Thanks

    OMG! Thank you so much - this has been annoying me for MONTHS! I've been referring other forum posts to this one since it's a solution that actually works!
    TroyG

  • Changing file type association through java

    hello all,
    here i had a problem like , we know when we try to open .csv file by default it wll open in excel , because the csv file type was associated with excel this we can see in mycomputer->tools->folder options->file types and here we even have the possiblity of changing the association.
    anyway, my question is that is there any way of changing this association like csv to oepn in wordpad through java program
    with regards
    satya

    i created a like wordCsv.reg
    REGEDIT 4
    [HKEY_CLASSES_ROOT\.csv]
    "Default"=string:Wordpad.Document.1
    when i click on this file i could see a message that the entry wassucessfully entried but i cannot see the entry
    is my approach was correct in adding entry in regedit programatically,
    please any more ideas
    http://jniwrapper.com/pages/winpack/downloads
    here in this link i saw some samples regarding changing file types association
    , dont now will it works
    since this is for win32
    i found a program FileTypeAssociation dont know will it works
    * Copyright (c) 2002-2005 TeamDev Ltd. All rights reserved.
    * Use is subject to license terms.
    * The complete licence text can be found at
    * http://www.jniwrapper.com/pages/winpack/license
    package com.jniwrapper.win32.shell;
    import com.jniwrapper.Function;
    import com.jniwrapper.LongInt;
    import com.jniwrapper.Pointer;
    import com.jniwrapper.UInt;
    import com.jniwrapper.win32.registry.RegistryKey;
    import com.jniwrapper.win32.registry.RegistryKeyType;
    import com.jniwrapper.win32.registry.RegistryKeyValues;
    import com.jniwrapper.win32.registry.RegistryException;
    import java.io.File;
    * This class provides functionality for creating file type associations.
    * @author Vladimir Kondrashchenko
    public class FileTypeAssociation
    private static final String FUNCTION_SHCHANGENOTIFY = "SHChangeNotify";
    private static final long SHCNE_ASSOCCHANGED = 0x08000000L;
    private static final long SHCNF_IDLIST = 0x0000;
    private String _extention;
    * Creates a class instance for associating files of the specified type.
    * @param extention specifies the file type by its extention.
    public FileTypeAssociation(String extention)
    if (extention.startsWith("."))
    _extention = extention;
    else
    _extention = "." + extention;
    * Creates a file type association.
    * @param executable an associated file will be passed as a parameter of this executable file.
    * @param progID the programm identifier in the registry. If the specified prog ID is not exist, it
    * will be created.
    public void createAssociation(File executable, String progID)
    if (!executable.isFile())
    throw new IllegalArgumentException("File not found.");
    String commandLine = "\"" + executable.getAbsolutePath() + "\" \"%1\"";
    createAssociation(commandLine, progID);
    * Creates a file type association.
    * @param commandLine specifies an executable command.
    * @param progID the executable programm identifier in the registry. If the specified prog ID is not exist, it
    * will be created.
    public void createAssociation(String commandLine, String progID)
    RegistryKey registryKey = RegistryKey.CLASSES_ROOT.createSubKey(progID+"\\shell\\open\\command", true);
    RegistryKeyValues values = registryKey.values();
    if (commandLine != null)
    values.put("", commandLine);
    else
    values.put("", "");
    registryKey.close();
    registryKey = RegistryKey.CLASSES_ROOT.createSubKey(getExtention(), true);
    values = registryKey.values();
    values.put("", progID, RegistryKeyType.SZ);
    registryKey.close();
    changeNotify();
    * Removes all associations for the file extention.
    public void removeAssociation()
    try
    RegistryKey.CLASSES_ROOT.deleteSubKey(getExtention());
    catch(RegistryException e)
    try
    RegistryKey.CURRENT_USER.openSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts").
    deleteSubKey(getExtention());
    catch(RegistryException e)
    try
    RegistryKey.LOCAL_MACHINE.openSubKey("SOFTWARE\\Classes").deleteSubKey(getExtention());
    catch (RegistryException e)
    changeNotify();
    * Returns the default executable command for the file extention.
    * @return the default executable command for the file extention.
    public String getDefaultCommand()
    RegistryKey key = RegistryKey.CLASSES_ROOT.openSubKey(getProgID());
    key = key.openSubKey("\\shell\\open\\command");
    RegistryKeyValues values = key.values();
    return values.get("").toString();
    * Returns the program identified of the default executable program.
    * @return the program identified of the default executable program.
    public String getProgID()
    RegistryKeyValues values = RegistryKey.CLASSES_ROOT.openSubKey(getExtention()).values();
    return values.get("").toString();
    * Returns <code>true</code> if a file type association for the specified extention is registered.
    * @return <code>true</code> if a file type association for the specified extention is registered.
    public boolean isRegistered()
    try
    RegistryKey.CLASSES_ROOT.openSubKey(getExtention());
    catch (RegistryException e)
    return false;
    return true;
    * Returns the file extention.
    * @return the file extention.
    public String getExtention()
    return _extention;
    private void changeNotify()
    Function function = Shell32.getInstance().getFunction(FUNCTION_SHCHANGENOTIFY.toString());
    function.invoke(null,
    new LongInt(SHCNE_ASSOCCHANGED),
    new UInt(SHCNF_IDLIST),
    new Pointer(null, true),
    new Pointer(null, true));

  • XDG standards updated re MIME-type associations + default applications

    In April the XDG standards regarding Association between MIME types and applications was updated, and the changes are quite significant. For example, to specify default applications you should now list them in the [Default Applications] section of a mimeapps.list; placing them in the [Added Associations] section is no longer sufficient. Also, mimeapps.list files may now also be located in the $HOME/config ($XDG_CONFIG_HOME) and /etc/xdg ($XDG_CONFIG_DIRS) directories. The file defaults.list is confirmed as deprecated, as well as a mimeapps.list file in $HOME/.local/share/applications ($XDG_DATA_HOME/applications).
    Just to muddy the waters further, there are $desktop-mimeapps.list ($desktop is the desktop environment: kde, gnome, etc) which may accompany mimeapps.list files on all the paths!
    I'm implementing these new standards in my ayr launcher, but no doubt there will be many applications which will lag behind these new standards. The biggest immediate problem will probably be with file managers which often write the default associations they create to the [Added Associations] section in $HOME/.local/share/applications/mimeapps.list.
    This will not be much fun, but if it's standardising better, then so be it!
    Edit: There is a worked example, but there seems to be a mistake in this - $XDG_CONFIG_DIRS  should come before $XDG_DATA_HOME according to the standard.
    Also, the Default applications page on the Wiki is going to need a substantial revamp.
    Edit2: Overview of main changes
    Last edited by ninian (2014-06-18 23:27:39)

    Have now updated the Wiki section on:
    Using MIME types and desktop entries
    to reflect the new changes.

  • How to change file type associations in SAP ERP 6.0?

    Hello,
    I'd like to figure out how to change the application associated with a given file type in SAP. I want to open a .DOC file, but I am using OpenOffice instead of MS Word. I have .DOC file type already associated with OpenOffice in Windows XP, but SAP doesn't seem to recognize that association. I am using SAP ERP 6.0. Any ideas?
    Mike

    Hi,
    MS Word is mandatory. You will not be able to work using Open Office in SAP.
    Regards,
    Rajesh Kumar

  • Old icons remain after changing file type association

    I have several video file types in my Movies folder: MPG, MP4, AVI, and MKV.  Many of the file types are automatically associated with Quicktime Player, (despite it being unable to process them, such as the AVIs).  Being unable to play my MKVs at all, I downloaded VLC player to supplement.  I have since grown to like the additional features of VLC, and would like to use it as my player of choice for all movie files.
    Changing the file type associations was simple enough, (Get Info -> Open With, Set as default for each file type), however the pre-associated files still retain their original QT icon.
    How do I go about batch changing the incorrect QT-associated finder icons for icons that correctly represent their new association with VLC?
    Thanks for reading

    I was having that same trouble, but with ".rar" archives (in my case - OS X Yosemite), I tried all ways to solve it, following all kind of tips, like: choosing a new program as default to open the file, app cleaners, terminal commands, disk utility, etc.. but nothing worked. When finally I got problem solved, how I did it: 1) Download the program: Cocktail (http://www.maintain.se/cocktail/), after downloading, I got the message to register it, I simply clicked on "Remind me later". 2) Now, after installing it, configure Cocktail with this short tutorial, exactly as described (http://www.everythingmacintosh.com/tech-notes/maintain-your-mac-with-mac-os-x-co cktail/). After following 2 steps, Cocktail will be configured and will run, in the end your Mac will restart, you can now check that all your archives will be with correct icon (preview/thumbnail). Hope it helps!

  • Changing MIME types in OSX

    Everytime someone sends me a Word file, Apple's Mail app always launches AppleWorks to launch the file and does not launch MS Word 98.
    How can I change the Internet Mime types in OSX?
    John

    You don't. Select one of those files, CMD+I, go to the Open With section, select Word 98, and apply to all. If that doesn't fix things, reset the LaunchServices database. Details in http://www.thexlab.com/faqs/resetlaunchservices.html

  • Change file type associations after install?

    Hi there,
    i need to open/save .mp3 files with audition. apparently i forgot to tick the respective box during the file type association part of audition setup. is there a way to subsequently add .mp3 to a list of associated file types for audition?
    i double-checked - when trying to work around via right-click on a mp3 file --> open with... and then browsing for audition.exe it just goes back to the list of programs to choose from but audition is not the
    also, i can drag & drop mp3 files into audition and work on/with them, but cannot save them as .mp3. this is somewhat strange behavior as i can't see why i can work with the files but cannot really open them with audition nor save them from inside audition. i hope i don't have to reinstall it, any thoughts on this?
    thanks,
    fux
    EDIT: i recognized that this also counts for .pk files, same here..

    thanks for answering ryclark,
    but audition is not in the list. even further, when i choose open with, select choose default program, browse and select audition and click "open", i get directed back to the open with.. list of programs as if nothing happened and audition is still not available from the list. i guess thisis because i didn't associate .mp3 and .pk files with audition in the first place (= when installing audition).
    while it was working, in contrary to your statement, loading a .mp3 file in audition and just clicking on "save", like a ctrl+s would do, saved it perfectly fine as .mp3.
    besides, i know that audition works with .wav files and that .wav is the common format of choice regarding lossless results. nevertheless i would like to be able to load .mp3 files (and .pk files!) into audition and be able to save to .mp3.

  • Changing MIME Types

    Hi,
    I have a problem in downloading .xlsx or .docx, or .pptx files from the KM.
    The above mentioned file types get opened as a 'zip' file instead of directly opening as the file.
    I don't have any problem in opening .xls or .doc.
    I added the file types in System Config->Utilities->MIME Types.
    But still the problem remains the same.
    Regards.
    Jelbin

    Thanks Sandeep.
    Restarting worked.
    Regards,
    Jelbin

  • Change File Type association to match creator?

    I've searched this and other forums, but not seen a similar question. Is there a way to make the Finder open a given file type automatically in its CREATOR application, rather than the associated File Type application?
    I have hundreds of files created in Illustrator, all without file extensions, and with PDF compatibility, which means that the Finder sees them as PDFs, not Illustrator files, and opens them in Preview.
    Can I tell the Finder NOT to open those in Preview, but still allow PDFs (not created in Illustrator) to retain Preview as their default?
    I know you can easily do that on an individual basis, I'm looking for a global solution, so I can still double-click the files and have them open in Illustrator.

    Fortunately, for now the OS is recognizing the old icons (from earlier versions of Illustrator). The sad thing is, if I keep those files long enough, I fear the time is coming soon that the OS won't recognize them at all.
    If all they need is an extension, open Automator and create a new application. Then select the Files & Folders group and add the Rename Finder Items action. Click "Don't Add" in the alert that appears, unless you want duplicates made of all files you run this script on! Change the popup that reads "Add Date or Time" to "Add Text" and change the Add popup to "as extension", then type the appropriate extension in the box (minus the period). Save it to your desktop, then drop groups of files that need that extension onto it.
    It's sad the way Apple jettisons the past, dumping support for the legacy of its users' work.
    Nothing in this dumps support for users' work. Those files will continue to work just fine, as long as the application in question (Illustrator) continues to support them.

  • Command line to change file type association?

    I'm trying to find the correct way to change the association for .PDF files by command line, to add to a deployment script.  The client mahcines have Reader X and Acrobat 7.  I'm trying to get it so by default, all users on a machine will use Acrobat 7 to open PDF files.  I have had no luck editing the registry key under Explorer/Shell, or using the commands FTYPE and ASSOC.  Is there another way to get this done?

    Hi Brian,
    You're looking for a hack because not only are 7 and 8 not supported, they are doubly not supported in conjunction with Reader 10.0. If you had 9.x and later products, you could specify which app was the default PDF handler. There could be a way to do what you want, but you're out in the wilderness on this one.
    Ben

  • Changing MIME types in Vista

    Hey all.
    I'm having problems with Quicktime and Windows Vista. Essentially, I can no longer view PNG files in either IE7 or Firefox. The Quicktime plugin indicates it's handling PNG files rather than the built-in programs being able to handle them. I've seen that this problem may be due to Quicktime's MIME settings. However, the "MIME Settings" button simply doesn't work in Windows Vista - it redirects you to plain old program settings.
    Is there some flat file or registry setting I can edit which will do the same thing as the preferences menu I can no longer reach? It's getting really annoying.
    Any help would be greatly appreciated.

    Yes, please help with this, I can't seem to figure it out either, whenever I click "MIME Settings", it takes me to the Set Default Programs window

  • How do you change file type associations?

    as in which kind of file opens with what application

    Hi,
    You can do this via the 'Get Info' command in the Finder:

  • MIME type settings for browser are IGNORED

    I have the following problem since Quicktime 7 Preview 2:
    Quicktime by default has many mime types associated which I don't want to be played by quicktime in my browser.
    For example .mp3
    So I deselected everything but Quicktime movies in the mime type associations.
    But no matter what I deselect there - Quicktime is stil playing everything in the browser.
    It seems that Quicktime conmpleteley ignores the mime type settings in the preferences and plays everything by default!
    What do I need to do to fix this?
    In versions 7 Preview 1 an lower these settings worked just fine.
    And as long as this isn't fixed I won't use Quicktime 7...

    The "hijacking" of files types and file extensions has been a part of every piece of software I can remember. Particularly with browsers and media files.
    Not all browsers use the same types of plug-in architecture and this may be what you're experiencing.
    It's been a long time since I fired up Internet Explorer on my Mac. Many browsers still use its style.
    On a Mac (maybe the same on a PC) Internet Explorer uses its own "File Helpers" for MIME types. These can be edited using its "preferences".
    Try changing the settings in IE. You'll find them under "helpers" (or something named like that).
    Because Microsoft has tried to put its own formats in "front" of viewers these obstacles will now be part of much of your online experience.
    User (viewers) do have most of the control. It's a shame that we have to fight just to get what we want in our online experience.

Maybe you are looking for