[how to] Thunar forgets preferred / default applications in Openbox

This was my situation:
I would set default image viewer to gpicview, default for movies and music was vlc, default for PDF's was evince. After reboot these settings would be forgotten and the system would use gimp for images, mplayer for movies and music and gimp(!?!) for PDF's
This was my fix:
edit ~/.bashrc and add this
#set desktop environment as XFCE so default apps can be managed
export DE=xfce
now in terminal follow these ideas...
1) to check the MIME of a file do this
xdg-mime query filetype ~/imagelocation/imagename.png
response is
image/png
2) tell it to use a certain program
xdg-mime default gpicview.desktop image/png
0) To get the name of the program:
navigate to /usr/share/applications and get properties on the relavant program. Check the "Launcher" tab and copy the command.

Thanks, tawan.
But I can not set my default application correctly.
What I did is as follow:
[Desktop:henry 10:37]$ xdg-mime default writer.desktop application/vnd.ms-office
[Desktop:henry 10:39]$ xdg-mime default mousepad.desktop text/plain
[Desktop:henry 10:41]$ xdg-open ./doc.doc
method return sender=:1.10 -> dest=:1.9 reply_serial=2
but xdg-open still use "mousepad" (my default application for plain text) to open this office doc.
I don't know what did I do wrong here...?

Similar Messages

  • How can i specify the default application to save a read later doc in Instapaper

    I have an Instapaper account, so that I can mark some online web pages to 'read later' if I wish to do this. I have successfully put the Instapaper 'Read Later' borkmarklet on the dock of my iMAC.
       However, whenever, I come across a web page or blog that I wish to read later, and click the 'Read Later' bookmarklet on my dock, it throws up an error message that reads ' There is no default application specified to open the URL' and so I am now at a dead end.
    Can someone explain to me where and how I can find the default application to get round this problem. By the way, I did not find this problem with Instapaper's 'read later' bookmarklet on my old Windows PC, where I was able to store pages for reading later with this app, and also to transfer them automatically to my kindle through the wifi connection at home.
    I hope someone can assist... Or is there another way - (apart from Instapaper which worked okay with Windows)- to save web pages for reading later with MAC -
    Thanks

    This is pretty simple in Safari, in the upper left of Safari you will see an icon that looks like pair of glasses, this is where you collect webpages for you to read later. The feature is called Reading List and looks like:

  • How do I change the default application to open files.

    I am rather new to Mac OS (using Leopard). I am rather frustrated, that I have not been able to find a way to change the default application that opens PDF files. I looked around the System Prefernces, couldn't find it, searched the Web, nothing. And I could not find an answer in this forum either.
    So here is my question. How do I change the default application for opening PDF files from Preview to Adobe Reader? I do not want to have to click "open with" every time, I want to open a PDF file.
    And how do I do this for other files also? For instance, I may want to open images files with Photoshop instead of Preview.

    Hey ! I was going mad with the same question - and I'm not a complete newbie - so thanks to William for answering it - I knew I'd seen that dialog somewhere, but just couldn't find it. Text edit was driving me crazy telling me that .ppt files were screwed, now I've got em to open with Powerpoint...
    In answer to your last question, Craig, the dialog that appears to ask if you're sure specifically says the change will relate to all .pdf files ( or .ppt or .whatever ), so it won't stop Preview from opening other types of files.
    Thanks for the help - searched Apple support in vain on this one...

  • How can i change the default application to vlc player for playing any videos on my macbook?

    How can i change the default application to vlc player for playing any videos on my macbook?

    1. Control click the file you want to open.
    2. Click Get Info.
    3. Under open with, pick the App you want to be default.
    4. Click Change All Button.
    5. Confirm your decision.
    You have to do this with every file that has a different extension. You can't change the default for every file with a different extension in a single operation.

  • How can i change the default application that Lion uses to open a document?

    how can i change the default application that Lion uses to open a document?

    Right-click on the document, select Get Info... In the lower half of the tall window that opens is a section labeled Open With (you may need to click on the disclosure triangle to see detail). Select from the pop-up list which app should open this document. If you want that to become the default condition, click on the Change All... button.

  • How can I change the default application for a content type?

    Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

    This is real progress, a solution to the problem as posted. The command:
    xdg-mime default okularApplication_pdf.desktop application/pdf
    makes okular the default.
    However when I added okular to the choices for applications in:
    * Edit>Preferences>Applications>PDF
    the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:
    # Document Viewer (default)
    # Acroread
    # Other
    Now it has only 2:
    # Okular (Default)
    # Other
    I'd like it to read
    # Okular (Default)
    # Acroread
    # Other
    How can I control the entries in this pulldown list?
    Also, how can I make the default choice in the popup box be
    * Open With <whatever> , rather than
    * Save File ?

  • How can I change the default application to open a filetype with to a terminal application?

    I have recently installed mpv to get the best video playback for my mac, but I was wondering if there was a way to get video files to automatically open with mpv when they are double clicked instead of launching them through the terminal, the way you can do with applications.

    You should only need the one "Run Shell Script" action.  You do not need any other Automator actions.
    You get to provide the /path/to/where/you/stored/mpv
    If you need to provide additional command line arguments, then add them to the command line before the "$f"
    Once you save this Automator as an Application, you can then use the Finder -> Get Info to associate your video files with your application as mentioned earlier.
    Once you make the file type association for all video files with the same .type, then when you double click on a file it will be passed by argument to your Automator app as "$@", which the 'for' loop will then put into "$f" that gets substituted on the mpv command line.
    If you select a group of videos, with the .type you have associated wth your Automator app, and then use Finder -> File -> Open, your Automator app will be inoked with each of those selected files passed via "$@".  The 'for' loop will break apart "$@" into individual files that get passed to 'mpv' via the "$f" variable.
    If you have different video .types and those different .types need different 'mpv' options, you could create a different Automator app for those .types that invoke 'mpv' with the needed options for those .types.
    If all the different video .types can all use the same 'mpv' command line, you can associate as many different .types with your one Automator app via the Finder -> Get Info -> Open with -> mpv_automator_app, then click on "Change All"

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

  • Default Applications

    Newbie question here - how do I change the default application to start when I open a file in Finder? I've installed NeoOffice and want it to be the default application for .doc files. Right now when I open a .doc file in Finder, it starts the TextEdit application. Spreadsheet .xls files open NeoOffice properly. Thanks.

    Hello,
    Find a .doc file and press cmd+i to bring up the 'Get Info' window.
    Towards the bottom of the window that appears will be an 'Open with:' section. Modify that to your preferred application and click the 'Change All' if you want it to apply to all files of that type, and not just the currently selected one.

  • How do you make pages default document reader

    Hi
    I have just started using pages and i cant seem to work out how to make it the default application to open up the many documents i have.
    Every time i open a document it opens in textedit, i know that you can choose in properties with which program to open it with, but i am getting really fed up of doing this.
    is there any way to make pages the default instead of textedit program.
    Ta
    Karl
    p.s I used to use MS office but i cant be bothered to reinstall it and most of my docs are .doc (office format)

    kb,
    You can set .doc files to open in Pages, and it’s surprisingly easy: just go to the Finder, single-click on any .doc file, then type command-I (Get Info). Click on the Open With... menu and select Pages (or navigate to Pages if it’'s not in the menu). To make all .doc files open in Pages, click on the Change All button.
    You can do the same thing with other types of files, like RTF or plain text.
    -Dennis

  • Setting default application

    when I'm trying to open up a document or something it says something like "There is no default application specified to open the document (name of document)" . How do you set a default application and what should I set it to?
    I have an iMac version 10.4.8

    Tell me some of the names of these programs. What are the 3 letter suffixes (after the .)?
    Examples: .sit opens with Stuffit Expander, .xls = Excel, .mov = Quicktime Player etc.
    Most games run by themselves after you've installed them
    Are these Mac games you've downloaded? Files ending .exe are Windows programs & require Windows XP SP2 to be installed through Bootcamp.
    Steve

  • How to make apple maps default on my mac?

    I want apple maps to default on my map, e.g.., when I need to send meeting location address in calendar.

    Hi ajjacoby14,
    To make iTunes the default application to use for playing music, use the steps found in this article -
    iTunes for Windows: How to make iTunes the default application for music and audio files
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • File extention and default application

    When i open a .doc file it's open the wrong application. How can i set the default application i want to open.
    thanks

    Click the file, click File>Get Info, then under "Open With", select the app you want .doc files to open with, and click "Change All".
    Good luck!
    P.S. Welcome to Discussions!
    Message was edited by: joshz

  • Default application problem

    I have NO IDEA where this question should go, or even if Mac users will understand what an old PC-trained newbie to Macs is asking, but here:
    I have a text editor called Bean. I like it. But I don't know how to make it my default application so TextEdit doesn't come up every time I go to open a text file.
    Thanks.

    Select a text file such as one you would use with Bean. Press COMMAND-I to open the Get Info window. In the Open With section select Bean from the drop down menu then click on the Change All button. Now all such documents should open automatically in Bean and not TextEdit.

  • Default application

    How do I changes the default application for PDF files from Preview to my Adobe Acrobat Pro?

    rf15360,
    Try highlighting a PDF in Finder, click COMMAND I and it should bring up the info pane, go to teh bottom select "open with" select Adobe then click change all

Maybe you are looking for

  • Difference between Condition: Good and Condition: Normal?

    I just got my Macbook in June, and it has already changed in my Power options from Condition: Good to Condition: Normal. The stats are: Charge Information: Charge remaining (mAh): 4230 Fully charged: Yes Charging: No Full charge capacity (mAh): 4262

  • Loading a song to IMovie project twice

    I have started a IMovie project and placed a particular song from ITunes at or near the commencment of the first clip. I now want to place the same song at a different starting place further on into the project. The field " Place at Playhead" is not

  • Faithful old ibook G4-how is your ibook?

    hi just wondered how many years everyones had their ibook G4? and do you still use it? Ive had mine originally 2003 when it blew up JUST out of warranty..:( cd rom also went....it was the 933mhz (i think), it was a low spec at the time... ANYway...af

  • How can I get the OS short date format?

    I want to get the format of OS computer in java. somthing that return to me: yyyy/MM/dd or MM/dd/yyyy og dd/MM/yyyy Thanks and have a nice weekend!

  • HFM Consolidations using Task Flow Automation

    I have created a task flow that has 5 stages (each stage having a success and a fail link). The first stage is set to consolidate (Impacted) our Actuals scenario for 6 years for 3 entity trees). The 2nd stage consolidates a different scenario for 3 y