Mimeman: a mimetype to application file association manager

info page: http://xyne.archlinux.ca/info/mimeman
I got the idea for this when dealing with mimetypes for ObFilebrowser. Pcmanfm kept creating redundant desktop files so I wanted something to purge them and it just went from there. I think it's pretty robust for doing mass associations due to the ability to use perl regexes.
The man page on the info page should explain it. If you want to see the actual changes that it makes, open up ~/.local/share/applications and take a look at the files after each operation. If anything's unclear, let me know. I'll probably add this as an optdepend to ObFilebrowser and throw in a menu to do in-menu associations along with some other stuff. *edit* Maybe I'm just tired, but I'm looking at different ways of doing that and they all feel a bit inelegant... might just stick to the command line... it's easy enough to do with the "copy mimetype" menu anyway. Meh.
Btw, I seriously considered naming this "assman" or "assmime". It might not take too much convincing to get me to change the name.
Last edited by Xyne (2009-08-12 20:19:58)

Have you ever created something not useful?

Similar Messages

  • Applications & File Associations

    Hi, I love GoodReader. Great app. I also need MarinerCalc (sorry Numbers). My question is this:
    When opening a document in email or what have you, there is that "open in (applicationname)" button. MarinerCalc, for some reason, has decided that it should be the default open-er of .pdf files. This is horribly annoying.
    Anyone know if/how this can be changed?

    Hi Primeid,
    You could use Group policy for file associations or you could deploy the xml file during image deployment. However as you mentioned that the file associations only applies to common application on local hard drive or metro app.
    http://blogs.technet.com/b/mniehaus/archive/2014/01/10/configuring-file-associations-in-windows-8-1.aspx
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    We understand your confusion about this, but we hope you understand that using network location for file association deployment is highly insecure and it is out of our recommendation since the content in that network location could be changed without any
    notification or permissions constraint.
    Thanks for your understanding.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Filevault overwrites file associations on boot

    how do I stop it from doing that, and/or what files do I need to edit/replace (ie. via an rc file or script) in order to reset the application/file associations back to the way I prefer?
    I have dozens of associations, so using a gui method after every boot is completely infeasible, nor is turning off filevault.

    I think I may have solved the problem, in large part thanks to you pointing out which file to look at. What I did was convert the plist file from data to xml format via the following command.
    cd ~/Library/Preferences/
    plutil -convert xml1 com.apple.LaunchServices.plist
    I set all my preferences the way I like, backed up the xml file, then rebooted. Voila! A diff between the files, reveals no changes whatsoever, and my apps appear to be working as desired. So far so good, and barring some total fubaredness, we may have a winner...

  • File associations in Windows 8.1 for applications on a network location

    Hi,
    From Windows 7 to Windows 8 it has been done alot of changes regarding file file assocations. It seem that the main reason was security and was "patched" by having Windows read the hash for the applications instead of where the application was
    located.
    but there seem to be some major hicups and there is limited info on the web covering these issues.
    First issue: when running:  Dism /Online /Export-DefaultAppAssociations:\\Server\Share\AppAssoc.xml and then creating a GPO configuration pointing to
    thi XML file.  With this feature only common file extensions is supported and when users are changing to another computer, these settings is not possible to syncronize using roaming profiles.
    Second issue: In the appassoc.xml file applications must be either appid(metro app) or common application on local harddrive to be registered and not a .EXE
    file on a network location.
    It seems a little strange if this is the case and if there is no other options for administratos to set file associations in more flexible ways. Does anyone have some more info on
    this topic other than these link:
    https://technet.microsoft.com/en-us/library/hh825038.aspx?f=255&MSPPError=-2147217396
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    https://keithga.wordpress.com/2013/11/13/file-associations-in-windows-8/

    Hi Primeid,
    You could use Group policy for file associations or you could deploy the xml file during image deployment. However as you mentioned that the file associations only applies to common application on local hard drive or metro app.
    http://blogs.technet.com/b/mniehaus/archive/2014/01/10/configuring-file-associations-in-windows-8-1.aspx
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    We understand your confusion about this, but we hope you understand that using network location for file association deployment is highly insecure and it is out of our recommendation since the content in that network location could be changed without any
    notification or permissions constraint.
    Thanks for your understanding.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How make file association with a sgd application

    hi!
    I need to know, how i make file association from a sgd client.
    I need open file .doc with a sgd application just make doble click in the file .doc
    in the client
    SO: rhel5u1
    i have word.desktop file
    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=word2003
    Icon=/home/ssa01/.tarantella/icon-cache/srsgd.sunssa.com/windows.gif
    Categories=Application;SGD;
    Type=Application
    Exec="/home/ssa01/.tarantella/tcc/4.50.907/ttatcc" -profile "srsgd.sunssa.com::Default" -application ".../_ens/o=applications/cn=word2003"
    Terminal=false
    please help me!!

    guinn8181
    it showed up as a ProTools (an audio editing application I have installed) plug-in … How can a firmware update meant for a specific hardware but tied to a third party softwareThen this is a bug in ProTools. The "Open with" should show "<None>".
    You need not concern yourself too much with this, since the system will run this updater as and when necessary—you don't need to run it yourself.

  • Open specific PDF document in Windows 8.1 Reader Application without File Associating

    I have a user case where i need to be able to open one spesific PDF document without changing "File Associating" from Adobe Reader. Is there a good way to open the reader app and a document from CMD or simular? I know I manual can use "Open
    With" but this is not a option because I need to do this in one operation from a shortcut on the start screen.

    Hi,
    For command option, you may find adobe reader application path, 
    just like that:
    C:\Program Files (x86)\Adobe\Reader 11.0\Reader>AcroRd32.exe 
    "D:\example.pdf"
    Alex Zhao
    TechNet Community Support

  • File association conflict between two applications

    I'm using an editor called Sublime Text and recently upgraded from version 2 to version 3. Both versions share the same exe filename but are installed in different directories.
    C:\Program Files\Sublime Text 2\sublime_text.exe
    C:\Program Files\Sublime Text 3\sublime_text.exe
    When both versions are installed, it was not possible to change file associations from ST2 to ST3 since Windows treated them as the same application and started ST2 instead.
    When I removed ST2 it was still not possible to associate files with ST3. When I choose Open with - Browse and select sublime_text.exe, nothing happened. The solution was to remove this registry key
    HKEY_CLASSES_ROOT\Applications\sublime_text.exe
    as described here:
    http://www.sublimetext.com/forum/viewtopic.php?f=3&t=12928
    Is this a common problem for all programs that share the same exe name or has the developer made an error somehow by giving both versions the same id?

    This is a common problem. The problem is that the ID remains the same for both the versions. Therefore version conflicts occur. And that's the reason it's recommended to use only one version at a time. And so, most softwares are designed to remove their
    lower versions before installing higher version.
    If you mean 'upgraded', generally, lower version will be removed automatically.
    So try removing both the versions, restart the PC, install the higher version, restart the PC and then check.
    Balaji Kundalam

  • -- A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system using window 7  IE 11

    A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system
    USING WINDOW 7  IE 11  HOW CAN I FIX???

    Try downloading the offline installers:
    Adobe Reader
    Flash Player for Internet Exporer - ActiveX
    Flash Player for Firefox - NPAPI

  • Importing freedesktop file associations into various file managers

    I love light FMs that don't rely on HAL (or rather, don't rely on it AND don't make me mess around with XML files to get them working). But file associations in most of them are a pain.
    - ROX makes you set up associations one by one
    - So does tuxcmd, as far as I can tell
    - Emelfm2 comes with assocations, but doesn't pay attention to what you have installed
    - XFE is probably the best, it lets you associate various broad types of files (audio, video, etc.) with an application... But unusual filetypes still need to be associated manually.
    My thought is: the .desktop files are already there, in /usr/share/applications. Can I import associations from those?
    ROX I already know can do that, albeit in a kind of crippled fashion, with perl-mime-info. That doesn't seem to work for the other three though.
    If I had to guess, I'd say XFE didn't support importing associations, since it makes things the least painful. Tuxcmd I'm not sure about, I'd think it would given that it starts out with all of two associations, generic file and generic directory...
    Emelfm2 on the other hand appears to have some way of importing .desktop file info. However, the website is down and Google's cached version won't load, so that's all I know.
    Does anyone know more about dealing with .desktop files in the above FMs?

    You could take a look at mimeo (for opening files) and mimeman (for managing associations).
    Mimeman lets you set associations (including defaults) using globbing and regexes so you can avoid most manual work. Mimeo respects associations set by mimeman as well as those in .desktop files. If you can get your file manager to use mimeo for everything then you should be able to get consistent behavior.
    Mimeo also supports an arbitrary association list that is based on argument strings rather than mimetypes, which allows it to open e.g. URLs.

  • File association in Firefox ESR

    I'm using Ubuntu 12.04 and Firefox ESR 10.0.9 installed but the file association is not working. For example, the history window when the download request to open the folder nautilus does not start. Pdf files, jpg and others are not open with their applications.
    The 16.0.1 version of Firefox installed by default works perfectly.

    Try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • Firefox file type management [SOLVED]

    I am having some trouble with Firefox handling file downloads. There are two parts to my problem.
    First, when I click on a file type that I've never handled before, I get the standard download/save dialog. In the dialog I see no default applications, probably because I'm not using GNOME, so I select "Open with...", browse to the desired application, and click "automatically do this..." When I check Edit->Preferences->Content->Manage File Types, I see an entry for the file type I downloaded. However, the next time I encounter that file type, it does not automatically open it with the desired program nor does it even populate the "Open with..." field so I can just click OK. In short, the problem seems to be that Firefox ignores its own file type database. To try to solve the problem, I have deleted mimeTypes.rdf and I have created a completely new profile, but yet I still have this problem. Does anyone have any ideas on how to get Firefox to respect its file type management settings?
    A second more general question involves how I might get the default application part working. I have tried installing libgnome and gnome-mime-types to get Firefox to pick something up, but with no success. The other option I've seen mentioned is having a mailcap file, but I can't find a good way to get a decent mailcap file set up in Arch. I also noticed the xdg-utils package, but I don't know if this can be integrated with Firefox.
    Edit: OK, actually I noticed the libgnome partially seems to be working. After restarting my session, I noticed that now there are more MIME types in the file management setup. Unfortunately, it seems that trying to open one of the installed types still doesn't work.
    Thanks for any suggestions,
    j
    Edit (6/1/2008): I updated to use Firefox 3 RC1 and it all magically works!
    Last edited by jbromley (2008-06-02 06:35:44)

    Well, I've been having the very same problem here as well, but with thunderbird (not in firefox)... In the past, but also now with kde 4.2.2 / kdemod.
    The associations list is always empty and the default associations are definitely not KDE's ones (seem gnomish though gnome is not installed).
    In firefox, I can see my kde apps in the list...
    Last edited by mahen (2009-04-10 13:29:48)

  • File Association, Open File, Edit File

    Vibe is told to support > 400 file formats and that the file viewing capabilities are provided by Oracle Outside In viewer technology that supports over 500 unstructured file formats.
    Testing with Firefox 33.1 on Linux desktops and Vibe 3.4 on SLES11SP3, the following basic file management options beyond Download/Save and possibly View, are available for some typical file types:
    PDF
    + Opening in the browser pdf preview
    DWG
    + Open with
    ODT
    + Open with
    + Edit
    DOC
    + Open with
    + Edit
    DOCX
    TXT
    + Edit
    I wonder why "Open with" and "Edit" is not available for DOCX, as long as the document was intially created with LibreOffice on the Linux desktop?
    In my opinion also complete file action options should be brought up in a context menu by right-click (as usual in File managers) on any file in the folder Files list.
    Is there any configuration file on Vibe that can be edited to complement the available file actions for DOCX files etc ?
    The Vibe Admin guide has a chapter about Configuring File Associations for Edit in Place Applications, but I'm not sure how to do this and if this will help here https://www.novell.com/documentation.../b10u30w2.html
    Else, in Firefox Edit>Preferences>Applications it is possible to set Actions for various file types (content), and in Gnome 3,x System settings | Details | Default Applications can be selected.
    Thanks,
    Terje J. Hanssen

    Hi Pawel,
    I tried first as user to change the default editor settings for .docx to libreoffice according to the documentation
    https://www.novell.com/documentation...s.html#bk59mem
    but with no difference as result.
    Click on the .docx file pop up the Opening .docx widget which only offers the file options Cancel and Save.
    There is still no "Open with" option available.
    There is still not 'Edit This File' relevance tab available, nor contains the 'File Actions' any Edit option.
    Any idea why the .docx file type is missing this fundamental file management features in Vibe?
    Terje

  • GNOME and KDE file associations

    Hi,
    I like to use KDE and GNOME, alternating between them. Sounds crazy, but I like both. Please, let's avoid the "GNOME vs. KDE" discussion, right?
    My problem is: I like to use different file associations when I'm using GNOME or KDE. For example, I'd like to associate text files with gedit in GNOME and with Kate in KDE. But if I associate text files to gedit in GNOME, when I run KDE and open a text file it opens gedit. If I associate them with Kate in KDE, when I'm using GNOME it'll use Kate as its text editor.
    Some time ago I could have both desktop environments without this mess. Can I have this behaviour back?

    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.

  • "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it." occurs while deploying from Visual studio

    HI,
    I get this error "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it. " when deploying my project from visual studio 2010 to
    SharePoint 2010 site. I tried restarting IIS, but it didn't help. This application used to work fine until the server crashed during the deployment process. All the other applications on the same server works fine also. Any ideas how to fix this issue? 
    Thanks in advance,
    AM

    Hi
    AM ,
    Thank you for your posting!
    According to your error message, it says your solution does not have a WSP file associated with it. Take a look at the file system.  After you Right Click -> Deploy Solution on the VS Solution, there
    should be a .wsp file at <Solution Directory>\bin\<debug|release>.
    Also the error can be occurring when the developer try to deploy solutions over pre-existing solutions  with material changed  in the solution.  Go to your Central Administration Site and then
    Operations and then Solution Management.  Make sure that there not already a solution with the same name deployed or installed there.  If there is, remove it and try deploying again.
    And you could look in logs and find if there is a below error in ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • FAQ: What do I need to know about file associations when I load  Photoshop CS6?

    Use Windows control panel to establish the file association.
    This solution uses Photoshop as an example. For any other product, replace that product's filename extension and executable name with the product and file type you are attempting to restore.
    Windows 7/Vista
    Choose Start > Control Panels.
    Change to list view:
    Double-click Default Programs.
       4.  Click Associate A File Type.
       5.  Select .PSD from the list. 
    Click Change Program.
    If your desired version of Photoshop is listed, choose, it. Otherwise, click Browse to locate it and click Open.
    Ensure the "Always use the selected program..." option is selected. Click OK to close the Open With dialog box.
    Double-click an .PSD file to ensure that it opens with your preferred version of Photoshop.
    On Windows 7, click the View By pop-up menu and choose Small Icons.
    Windows Vista, click Classic View in the upper left.
    Windows XP
           Choose Start > Control Panels > Folder Options.
           Click the File Types Tab.
           Select PSD from the list. 
    Note: If you do not have PSD in the list of extensions, skip ahead to the next section, Create a filename extension.
           Click Advanced.
           Select the Open action, and click Edit
           Click Browse and navigate to the Photoshop.exe for your version. Select it and click Open.
    Note: Make sure that the resulting value in the Application Used textbox has the following syntax, especially the "%1" (with quotes included). If it does not, manually edit the field contents so that it does:
    "C:\Program Files\Adobe\Adobe Photoshop CS6\Photoshop.exe" "%1"
           Select Use PSD and click OK to close the New Action dialog box.
           Click OK to close the Edit File Type dialog box.
           Click Close to close the Folder Options dialog box.
          Double-click an .PSD file to ensure that it opens with your preferred version of Photoshop.
    How to associate files for Photoshop CS5 with Bridge CS5 and Photoshop CS6 with Bridge CS6
    1. CS6 assigns all standard graphics files to be associated with CS6 and thus causes Bridge CS5 to invoke Photoshop CS6.  The objective is to have Bridge CS5 invoke Photoshop CS5 at least for chosen file types.  Ensure neither CS5 nor CS6 is invoked.
    2. In the Win7 Start Menu search box, type "file association".
    3. Select the "Change the file type associated with a file extension".  This starts a window titled "Associate a file type or protocol with a specific program".
    4. All of the graphic files are assocated with Photoshop CS6.   For those files you want to associate with Photoshop CS5, click on the chosen file extension (e.g. .cr2, .nef, .psd, etc) and click on the "Change Program" to associate the extension to Adobe Photoshop CS5.  (note.  this step seems to be a necessary operation since, when I simply modified the Bridge CS5 file type associations, Bridge 5 did not honor the change).
    5. Start Bridge CS5. Choose "Edit -> Preferences -> File Type Associations".
    6. For each file type you wish opened in CS5, change the association from CS6: choose the "Browse" option and locate the CS5 version of Photoshop.exe".  This is probably in Program Files/Adobe/Adobe Photoshop CS5 (64 Bit)/Photoshop.exe. Click on OK to complete the association.
    Now you can invoke Bridge CS5 and it will properly invoke Photoshop CS5.  If you invoke Bridge CS6, it will invoke Photoshop CS6.  If you use file manager to invoke one of your selected file extension types, it will start Photoshop CS5. Other graphic files will start Photoshop CS6.
    If you wish, you can go back and reassociate the chosen types to PhotoshopCS 6 - but your Bridge 5 will still invoke PS5 for your chosen extensions since the Bridge-assigned file associations takes priority over the windows default program.

    Also, see:
    Font Management in OS X
    http://images.apple.com/pro/pdf/L311277AFontTTv4.pdf
    http://www.creativetechs.com/tips/SVC-fonts/Fonts-2007-SVC.pdf
    http://dl.extensis.com/downloads/SC/EN/P/FontsBest_Practices_inOSX.pdf
    http://www.macworld.com/article/44942/2005/05/julyworkingmac.html

Maybe you are looking for