[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.

Similar Messages

  • 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)

  • Get Uploaded File Mime Type and Client Filename

    Anyone know how to recover an uploaded file MIME type and
    client file name?
    I'm writing my own cfx tag to process file uploads and pretty
    much have it figured out except to determine the name of the client
    file and mime type. The formfield file variable value contains the
    path/filename to the CF temp directory, but I need the MIME type,
    filename, etc. that is contained int he HTTP Header
    (e.g. Content-Disposition: form-data; name="Image";
    filename="C:\test.JPG"
    Content-Type: image/pjpeg
    [empty line])
    I'm using the getHttpRequestData() functiont, but it only
    gives me the content-type multipart/form-data, leaving out the Mime
    type and Content-Disposition (which contains the client file name).

    Hi Daniel,
    do you use EPG, mod_plsql or APEX Listener? Have you changed the connection mechanism after upgrading to 4.2.1?
    If you use the APEX Listener, which version do you use? Which browser and version do you use to upload the file? Does it reproduce with other browsers as well?
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • 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 are Static File mime types determined?

    How does APEX determine the mime type for imported static files?
    We have a number of javascript files in our application, some of which are listed on the Static Files page as "text/html" and some are "text/plain". But some are imported as "application/octet-stream" which prevents them from being edited within APEX.
    All of these files contain plain text javascript functions.
    File sizes range from 539 bytes to 21251 bytes
    We tried changing the extensions from ".js" to ".jscript" and reimported them. They were all given a mime type of "text/plain". But one file was misnamed with the extension ".jsript", so we deleted it, changed the extension to ".jscript" and re-imported it. It was imported as "application/octet-stream" even though it was exactly the same file just renamed!
    What's going on?

    I am trying to use a rather older programming language called Mozart, an extension of OZ. I installed it as a binary, but instead of storing its component binaries in a place like /usr/local/oz/bin/. they are all enclosed inside the /Applications/Mozart.app/Contents/Resources/bin/. which cannot be opened nor can a soft link be made to it located outside the Mozart.app wrapper.
    The only alternative is to try to edit the mimeTypes.rdf files, and give it the full path name to the inside of Mozart.app were the program used for web applications is stored. It is stored in ~/Library/Application Support/Mozart/, which can only be accessed in more recent Mac OS X by going to finder and holding the Option key while opening the Go menu; this will make the ~/Library visible and accessible.

  • Uploading files Mime Type not correct for Office 2007 default extensions.

    hi all,
    My company has recently moved over to MS Office 2007 and the default extensions for word, excel etc are now .docx, xlsx etc (ie xml based).
    Unfortunately now when we upload files through APEX to the database the MIME TYPE value for these files isn't being recognised and not loadeding correctly into the APEX_APPLICATION_FILES table and subsequently any future retrieval of these files fails.
    I could put some logic inthe up load procedure to look at the filename in APEX_APPLICATION_FILES and hard code in the releavnt mime types but this still causes problems when retrieving the content.
    Has anyone come across this and got a workround? Is it a bug in AE?
    regards
    James
    FYI - using APEX 3.0.2 over 11G.

    I have not any response to my question and not sure if it is in Apex I need to look or the tomcat server that I need to look. I have a useful application to try to show others what Apex can do for our customers to collaborate. However, most of our customers are using office 2007 so, hoping this is possible.
    I am using apex 3.2.0.00.27 if that helps someone to point me where to find more info on being able to have Word 2007 or excel 2007 fire up to open a .docx or .xlss file stored in a table blob column. Word or Excel does fire up to open .doc and .xls files.
    The following is the query for a report selecting the filenames uploaded into a blob column in my table:
    { SELECT s.ID, SUBSTR(s.NAME,INSTR(s.NAME, '/',1,1)+1,length(s.NAME)) SHORT_FNAME, s.SUBJECT
    FROM spp_attachments s
    WHERE s.PROGRAM_ID = :P2_PROGRAMID }
    Below is the stored procedure called from the link on the short_fname column in report query above.
    { create or replace PROCEDURE  download_file(p_file IN number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    APEX_APPLICATION.G_FLOW_ID :=245;
    IF NOT (wwv_flow_custom_auth_std.is_session_valid) then
    owa_util.status_line(404, 'Page Not Found',true);
    return;
    else
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM spp_attachments
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'),
    FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment;
    filename="'||replace(REPLACE(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),NULL),chr(13),NULL)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end if;
    end download_file; }
    Thank you,
    Mark

  • .indd File Mime type

    Could anybody tell me what the mime type for .indd files are?
    Am trying to allow indesign files into our DMS but I need the mimetype, can only find it associted with "application/octet-stream" but this mimetype allows things like .exe files etc
    Is there is specific mime type for indesign files and other adobe products file extensions like for pdf = "application/pdf"
    Thanks.

    Indeed, hastingsr is correct.
    There is no official MIME type for InDesign -- it does not appear in the IANA's listing: http://www.iana.org/assignments/media-types/application/index.html.
    But if you consult the XMP metadata that InDesign writes, it identifies itself in the Dublin Core metadata as application/x-indesign:
    <dc:format>application/x-indesign</dc:format>
    application/x- types are not covered in a registry, and are basically a free-for-all, but the IETF has realized that's not the best move, and that state is changing. See http://tools.ietf.org/id/draft-ietf-appsawg-xdash (Deprecating Use of the "X-" Prefix in Application Protocols. P. Saint-Andre, D. Crocker, and M. Nottingham. October 24, 2011).
    More than you wanted to know? :)

  • Determine file MIME types

    How can I determine the mime type of a file dynamically?
    I have created a simple servlet to help download files,
    but I need to set the content type dynamically
    (currently I have it hard-coded).
    Any suggestions?

    Okay! so I added the following code and now I get a NullPointerException on the setContentType method of the HttpServletRequest, because getContentTypeFor is returning null. Any ideas? see code ...
    <code>
    File file = new File( extendedPath + fileNm );
    // new code to get content type (also tried with file.getAbsolutePath() )
    String contentType = URLConnection.getFileNameMap().getContentTypeFor( file.getName() );
    response.setContentType( contentType );
    </code>

  • Re: Detecting a files MIME type from a servlet

    Try using 'application/octet-stream' for all the file types.

    Here's a list of articles that may help you get started:
    http://www.adobe.com/devnet/dreamweaver/?navID=gettingstarted
    The very first and most important step is to set up a Defined Site  (already mentioned by Nancy :-)
    This may help:
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • How to get the MIME type of the given file in R/3

    Dear Experts,
    Please tell me the FM or Class to get the given file MIME type in R/3 . I am using GUI_upload Function module to upload the file in R/3 .
    Edited by: balaji ramadas on Jan 16, 2009 5:39 AM

    Thank you Prosenjit I m using this FM   CV120_GET_MIME_TYPE
    to get the MIME type of the file
    regards,
    Balaji.R
    Edited by: balaji ramadas on Jan 19, 2009 9:24 AM

  • 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.

  • Pacman -Syu fails due to mime.types[SOLVED]

    Hi All,
    pacman -Syu results in:
    error: failed to commit transaction (conflicting files)
    mime-types: /etc/mime.types exists in filesystem
    Is it safe to mv mime.types and retry the system upgrade?
    I have Gnome and KDE installed.  I currently use KDE and this is "the" KED4.1 upgrade.
    Thanks.
    Last edited by whot (2008-08-19 01:03:49)

    pacman -Qo /etc/mime.types, showed no owner for the file.
    Performed:
    pacman -Rn mime-types
    pacman -S mime-types
    pacman -Syu
    System upgrade finished with no further problems.  Machine booted to KDE4.1 
    I've noticed a few things with KDE4.1:
    DUUUUDE, where's my data?!!? (calendar data, pim data, etc.)
    It seems a bit slow to respond.  I don't know if this is a kernel26 upgrade issue or it's the first time
    applications are being used so "things" are being set-up/configured for the first time.
    All in all, smooth upgrade to KDE4.1.  Thank you, devs.
    Thanks for your help, fwojciec.

  • MIME-TYPE is stored incorrectly sometimes, browsers can't display html content

    Our company is switching from Netscape Communicator to Internet Explorer 5.5 . This resulted sometimes in html-documents which could not be opened in netscape anymore, but caused the save-as dialogue box to pop-up.
    Analysis of this problem, with the aid of Oracle Support, showed some html-documents were stored in WWV_DOCUMENT with mime-type application/octer-stream. This is a mime type which should trigger the save-as pop-up dialogue in browsers. Netscape acts accordingly, but IE does display the content normally.
    The following events cause this problem:
    1. create a html document using a microsoft office product (word/excel)
    2. DON'T close the document in the office application
    3. Use the portal wizard to upload the file to a content area
    4. Use table WWV_THINGS and WWV_DOCUMENT and see mime-type isn't text/html but application/octet-stream
    5. IE shows the file, NN wants to save it.
    The workaround to this problem is to close the file in MSOffice before uploading it.
    Oracle Development confirmed it's the browser which sends this incorrect mime-type, and portal just stores this type. It seems this mime-type is overruling the extension to mime-type mapping in the configuration of Apache, using AddType or the file mime.types.
    So the mime-types defined in apache are only used outside mod_plsql, that is, when files from the filesystem of the webserver itself are used.
    When uploading a zip-file, and unzipping it in the database, all files get the right mime-type. It seems in this situation the mime-type is determined by looking either at the file-extention or the magic bits.
    Oracle says it's a microsoft bug, so I'll have to ask Bill for a fix.
    They are probably right, and I think I could reproduce this using CGI-scripting without modplsql and portal.
    But:
    It seems not logically to me that it depends on the method of uploading files (single files, or zipped files) which method of mime-type determination is used.
    Furthermore, I find it strange that it depends on the storage location of the file (database or filesystem) which mime-type is presented at the user.
    I'd like to hear your opinions about this
    Regards,
    Ton Haver

    You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
    <html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
    <html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
    The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

  • 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 MIME and file type associations

    Hi
    I'm sure this must be simple enough, but can't seem to find it.  I want to associate plain text files with an .sla extension with Scribus, but the only way I know how to do this would associate all plain text files with scribus.
    Do I need to make a MIME type for Scribus .sla files (and if so, how?) or can Gnome be made to associate by extension as well?
    Thanks.
    Fishonadish

    I needed a gnome application for it too, i'll make a PKGBUILD for it .
    Edit: It's in AUR now
    Last edited by jordz (2007-03-21 22:24:28)

Maybe you are looking for