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)

Similar Messages

  • Testing for applications associated with a file type

    Dear contributors,
    while trying to open a simple *.txt file via java.awt.Desktop.open(File)
    the IOException is thrown. According to Javadoc there is "no associated
    application or the associated application fails to be launched" in this
    case. Interestingly the Desktop class does not provide methods to test
    for particular file type registration, just for the "support" of a generic
    Desctop.Action. Colud you please illuminate how to check, whether a file
    extension / file type / mime type has an associated application in a platform
    (in)dependent way at least for "opening" ?
    OS: Linux, 2.6.24-22-generic, x86_64
    JDK: 1.6.0_07, 64 bit
    Many thanks
    Jaro Pullmann

    If you make the call and an exception is thrown, then there is not application associated with the file type--otherwise I believe you need to do some registry work if you do not want a pretest.

  • How to change the name associated with iCloud email alias??

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn’t attach any “name” to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iPhone using one of the aliases as the "from" no name would be associated with the alias email address. If it was the MainUserName then it would associate it, e.g. Main User <[email protected]> will show up on the "From" field when I sent an email. But with iCloud on the iPhone (and iPad), it’s Main User <[email protected]>, Main User <[email protected], etc., which I don’t want.  If anything it should be Alias 1 <[email protected]> or Alias 2 <[email protected]>.  Anyway, I don't want any name associated with the aliases, so when I send an email it will simply say [email protected] or just [email protected] with no name association. 
    It works differently if I access iCloud through a web browser.  If I send an email via iCloud on the web, I can customize and have a different name with each alias, e.g., Tom <[email protected]> or Harry <[email protected]>  And the customization carries over to the Mail app on my Mac.  That would be ideal if the customization carried over to the iPhone and iPad, but I'd be happy if there was no name association with alias email addresses.  Hopefully, there's a solution to the iPhone/iPad situation with iCloud as I don't want the name linked with the main iCloud email address linked with all the different email aliases I have.

    Can I change the name associated with an ipod on my Mac?
    Select the iPod in the iTunes source list, click on its name, and type a new name.
    And can there be more than one iPod on one computer?
    Yes.
    (39352)

  • How to change the username associated with "Home"?

    My wife got a new mac (from her job) and I've taken over her previous machine, a Macbook Pro (2008). I've upgraded the system several times already, and now using OS Lion. My problem is that I want — but haven't figured out how (or it it's possible) — to change the name of "Home"  — from (a form of) her name to something else. I'm the only user with administrative privileges, and I thought that would (somehow) change the name associated with "Home" — but no, it has not.
    Is this something that can ( or must) be done via Terminal?

    dawglover wrote:
    At present, I have (sole) administrative control of the computer. But I haven't been able to change the name associated with "Home" to something other than the name originally set by the computer's previous owner/administrator (my wife).
    You can't, the original name is squirelled away all over the machine.
    The only way to get it to be all yours, is to backup all data files off the machine, hold command option r down on a wired keyboard at boot time connected to a fast Internet connection and use Disk Utility to erase the ENTIRE drive, then reinstall OS X with your AppleID and password into the Macintosh HD partition.
    When you reboot, you are greated to the intial install, where you can place your name all over the machine.
    When you erase the drive this way all programs are gone, and only those associated with AppleID can be downloaded from AppStore as they are copy protected.

  • How do you change the application associated with a subscription

    I have a license without a current user.  The license is a single application license associated with Photoshop.  I would like to change the associated application of this license to Acrobat and then assign a user.  How would I do this?
    Thank you

    Is that a TEAM account?
    Team license links that may help
    -http://www.adobe.com/creativecloud/buy/business.html
    -team plans https://creative.adobe.com/plans?plan=team
    -manage your team account http://forums.adobe.com/thread/1460939?tstart=0

  • How to change "default" application?

    How can I change the "default" application? I meen how to redirect http://host/apex to http://host/apex/f?p=100 instead of http://host/apex/f?p=4550? Thanks for answers.

    Well, for one thing you can use Apache together with XE (as a proxy, easy to set up):
    Re: Existing http server
    HTTPS with Oracle XE ?
    Re: How to get X-Forwarded-For value?
    Here is another option using a new index.html file which does a redirect to your Apex application:
    Re: Default page
    Setting the default-page for the DAD Apex might work, too (http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_epg.htm#BABFFDEH) but I am not sure about passing the parameters to the "f" procedure will work in this setting.
    ~ Dietmar.

  • How to change default application in file context menu

    I know you can change the application that opens a file in the file;s info window (command i) and then double clicking the file opens it in that application. However the context menu still shows the same original default application. How to change what is shown as default in context menu?

    You can't. You can change the default app in Get Info which will change the first listed app in the context menu to that default app. How the context menu is built is not under user control.

  • How to change default HDR toning with 32 bit smart object - 16 bit, when not merging

    Suppose I have just done this:
    Opened a RAW file as a 16-bit smart object through camera raw, so I can easily go back and change raw parameters if needed
    Converted the document to 32 bit mode
    Set 32-bit preview mode to Highlight Compression
    Added a Curves layer and fiddled with the sliders until satisfied
    So far so good.
    Now what I would like to do is envelope/convert these two layers into a smart object, and then change the mode to 16 bit with a Highlight compression method, but WITHOUT merging the smart object. Merging leaves me with one flattened non-smart layer. Obviously I don't want to merge, because all the smartness of the previous (32 bit) smart object, and I cannot go back to the equally smart raw file.
    For a demonstration: http://tv.adobe.com/watch/russell-brown-at-photoshop-world-2011-orlando/smart-object-32-bi t-hdr-editing-techniques/
    After chosing "merge layers", an impressive dialog box is displayed with 4 toning methods. When NOT merging, nothing is displayed, and Exposure/Gamma seems to be silently used. Fine in some cases, but not now. It seems one cannot change that, or choose another one of the 4 methods. But perhaps someone has figured out a way to "will" it in another direction?
    Thanks for your help!

    Yes sorry about that, I may have been a bit brief indeed:
    I'm using Photoshop CS5, x64, latest patch (12.0.4). And ACR 6.4.1 to open a Raw file as a smart object in Photoshop.
    Step 2: correct, I used Image->Mode->32bit
    Step 3: I set the 32bit preview mode by clicking View->32-bit Preview Options->Highlight Compession
    Setp 4: I'm mistaken here, I added a Levels layer, because Curves are indeed unavailable in 32 bit mode.
    While I'm at it:
    Step 5: Then, I would select these 2 layers in the layers pane and convert them to a smart object (right click in layers pane -> convert to smart object)
    Step 6: Next step would be Image->Mode->16-bit. It would then ask to have the layers merged or not before changing bit depth. Only if you choose merge, the HDR toning dialog box would appear, from which you can select Exposure&Gamma, Highlight Compession, Local Adaptation and so on.
    I don't want to merge, because it will destroy the smart object containing the Levels layer and the original raw file (in a smart object)
    So I select "Don't merge". It doesn't show the HDR toning dialog, and goes straight in 16-bit mode. But what toning mode did it choose? By comparing the result you get when not merging, to the result when one does merge, it appears a default toning mode of Exposure&gamma is chosen. That's not what I want, because I would like to have Highlight Compression.
    But where can I change this behaviour?

  • How to change the name associated with my icloud email account?

    Hey there,
    I set an icloud account and for some strange reason, it took my second last name and not the first one (the one I use). So, if I send an email I feel it is not me. I just want to change the last name but I do not how to do it.
    Thanks,
    Eduardo

    Go to
    Settings---> Mail, Contacts, Calendars---> scroll down to Contacts to make sure that "My Info" is really your's and not your wife's.
    If that doesn't work, go onto a computer and...
    icloud.com (sign in)---> Mail---> Little gear in lower left corner of the screen---> Preferences---> Accounts---> Full Name
    KOT

  • Getting path to application associated with file type

    Hello,
    I'm looking for a platform-independent way to get path to application associated with given file type. Desktop API introduced in JSE 1.6 seems to do this, but it only lanuches the app.
    Any suggestions will be apprecieted

    Okay then, how can I open the file in it's associated
    application AND get the Process object of app's
    instance?If it doesn't bother you that the app will only work on windoze, then you can use the shell "start" command on the file.
    Process proc = Runtime.getRuntime().exec(new String[]{"cmd", "/C","start",filePath});However waitFor() will only wait for the process to be launched, not completed. Since your program doesn't know what Windoze will choose to launch, this makes sense.

  • I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    Thanks Gary, but no, that does not work. First of all, I can't select each bar individually. When I click on one bar, all three bars are selected.
    When I use "inspector > graphic" I have 5 fill options: none, color, gradient, image, tinted image. The default selection for the theme I'm using is image. What I would like to use for my charts is the same image that this theme uses for table headers. It has the same texture as the chart, but a different colour. Using anything but image or tinted image removes the texture from the fill.
    I have found I can do one of two things. I can select tinted image from the fill selections in "inspector > graphic" or I can select 2D Image Fills from "inspector > chart > chart colors". The first choice does not allow me to match the table header colour because it only allows me to apply a tint to the existing colour and adjust its opacity. The existing colour has too much influence on the fill, so I can't find an RGB adjustment that will match the table header colour. The image selections from "inspector > chart > chart colors" do not quite match the colour or the texture. Again, I can try to tint the image, but I still can't get it to match and the texture is not the same anyway.
    The image I want to use obviously exists in the software as it is an attribute of the theme, but for some reason is inaccessible. The other angle I have tried is to edit the theme, but I can't figure out how to do that either.

  • The email address associated with some songs in my playlist is old and deleted so how can i play these songs when it asks me to authenticate?

    the email address associated with some of the songs in my library is old and non-existent. how can i play songs associated with it when itunes is asking for authentication?

    Hey aearietta,
    Do you remember the Apple ID's password? If so, you can edit the email address by following these directions:
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/HT5621
    After you change your Apple ID, check this out:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    If you forgot your Apple ID's password, follow the directions in here:
    Apple ID: If you forget your password
    http://support.apple.com/kb/HT5787
    Welcome to Apple Support Communities!
    Best,
    Delgadoh

  • How can I change the age associated with my daughter's account?

    OK I am sure that this is a common issue.  Back when my daughter was about 9 or 10 years old, we bought her an iPod Touch.   She was too young to have an AppleID of her own, so I set one up for her using an extra gmail accoun that I had, and entered my birthdate/age.  A few years later, she received an iPad, and most recently, an iPhone.   All of these devices are tied to the same AppleID.
    Well, now she will be 13 years old soon, and I would like to switch things to represent reality.  She has her own email account, and I believe you can go to My Apple Id to change the Apple ID name and e-mail address.  My question is, can we change the age associated with the account?
    I hear you saying, "Just create a new AppleID for her."  That may end up being the only solution, but I am trying to avoid having two AppleIDs for her to keep up with.  She has already purchased a fair amount of content (music and apps) under the existing AppleID, and I am pretty sure from looking at the posts on this Community that you can not transfer content away from the AppleID under which it was downloaded/purchased.  And so, if I create a new AppleID, she will have to re-purchase the content to get it all in one place.  As she eventually grows up and becomes independent, I would like for he to not have to "start over" with her AppleID.
    Any advice or direction to information would be appreciated.

    I have a similar situation however a bit more complicated! It seems that when I was setting the birthdate I forgot to change the year so now my seven years old daughter shows up as a two months old! There is no way to change the birthdate because it shows up in light grey when I login into my daughters account and doesn't allow a change! The birthdate can be changed only when the child turns 13 however according to this she will have to be 20 before she can change it to show property 13 and here is where this is getting completely out of hand! Now to make things more complicated I have twin daughters and they came up with their unique but similar Apple ID, so changing one will require to change both Apple IDs! After being on the phone with Apple's customer support for about one hour I talked to a supervisor and the supervisor of the supervisor and their only solution is to create a new Apple ID! Of course in my case I will have to create two new Apple IDs, and I'm considering doing it. However when I started reading it becomes more complicated because I already made their Apple IDs part of my family group. It seems like you're not able to just let go of family member that is less than 13 years of age. You can only transfer it to another family, so Apple is making sure there are no kids left behind It seems like the only option will be to "abandon" the family and then create a new family with the new Apple IDs. If all this sounds bizarre to you it sounds bizarre to me too! If I can just put the kids in the car and drive them to the nearest one hour away Apple Store and have them show their credentials confirming their birthdate I would rather do that than having to spend more and more time with this issue, but that was not an option pointed out by customer support. So folks keep in mind that if you make a mistake your children's age is set in stone until he or she turns 20 if they happen to be seven at the time you made the mistake and no one can change this, even Apple! Now on the positive side I'm glad I didn't do the mistake when she was 13 or she will have to wait until she's 26 Most likely I'll be calling customer support tomorrow again and I will let you know how it went!

  • How do I change phone numbers associated with an iPad?

    How do I change phone number associated with my iPad?

    Obviously you must have an iPhone in order to associate the phone number with the FaceTime and Messages apps on your iPad. You haven't clearly stated what you want to do other than associate a phone number, so I assume these are the two apps that you want to associate the phone number with.
    If you are unable to add the phone number in the settings in either or both of these apps, you may have to sign out of both apps on the Phone and the iPad - and then sign in again on both devices in order to use the phone number for FaceTime and Messages on the iPad.
    This kb article explains how to do this in more detail.
    http://support.apple.com/kb/HT5538

  • How can I change the email associated with my forum account?

    How can I change the email associated with my forum account?  I didn't provide my work email to you, but you put it in my account.  My forum postings have nothing to do with my personal PC at home.  There isn't an option to update it.
    This question was solved.
    View Solution.

    Hi:
    Log in and click on your user name, then look at the upper the right side of the page.
    Click on the triangle to the left of the "More Resources" section.
    This will drop down, and give you options.
    Select User Settings.
    This will now open a page, and in the light blue type on top, follow it along to Contact Information, click on that, and change your e-mail address to what you want, and hit the blue submit button on the bottom right side of the page.
    Paul

Maybe you are looking for

  • Default sales org on selection screen using set and get parameter!!

    Hi, I need to default value on selection screen using SET n GET parameter...logic to be used should be: Sales Organisation: This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)... Ho

  • Additional field in selection screen of a abap query

    Hi, I am adding a new additional field in the selection screen through abap query(using transaction SQ02) which is of type VBRK-FKSTO. The value entered can be 'X' or empty space.But the value which is entered in the selection screen is not getting r

  • How to compare user input and database data?

    hi, I am new to JAVA, i hope i didnt post wrong forum :P I would like to know how to get user data input from web page(client side) and compare with the data in database (server side)? What i doiong is using the JavaScript to get the user input and c

  • Stop xjc generating entire include file

    I have defined a whole bunch of elements in a schema (m_fields.xsd). Another schema (myclass.xsd) uses an <xsd:include> to include m_fields and points to some of its fields (using ref="m_fields fieldname"). My problem is this : when I use xjc.bat to

  • 12.1 Migration problem - datebetween() function keeps throwing error

    Hello!  We just got done migrating our 11.5 code over to 12.1 and experienced this issue after running the application. Apparently, in the BLS transaction (mainly in the "Conditional Action Block"), we have a datebetween function to determine which p