Openbox - default applications - mimetype handling

Hi guys,
I use thunar-dropbox which provides the context menu entries.
Two of them are not working properly.
"Browse on Dropbox Website"
"View Previous Versions"
Those functions are supposed to open a new browser window. However on my system nothing happens.
Chromium is set as my default browser which can be proved with xdg-open google.com and opens a new chromium window.
I guess it can be a mime type problem, however I'm not sure what to try out.
Regards
Last edited by orschiro (2011-09-22 06:41:25)

To generalise this a bit more. Not only thunar-dropbox does not open the link in my preferred browser, i.e. chromium, but also other applications such as zim do not open links in chromium.
This must be a special problem related to links.
To recapitulate.
- xdg-open http://google.com opens a new chromium window. works
- exo-open http://google.com opens a new chromium window. works
- chromium-browser is defined as default browser through exo-preferred-applications
- perl-file-mimeinfo is installed
- xdg-settings get default-web-browser reports me
xdg-settings: unknown desktop environment
- I export the DE and BROWSER variable in my .bashrc
export DE=xfce
export BROWSER=exo-open
- As fallback my ~/.local/share/applications/defaults.list contains the following entries
text/html=chromium-browser.desktop;
application/x-directory=chromium-browser.desktop
I'm helpless what else to do. So if someone can please explain me the mimetype handling in Openbox. I'm very glad for that.
Regards
Last edited by orschiro (2011-09-23 03:09:44)

Similar Messages

  • Resetting Default Applications

    Just got a new Quad. While I was setting up Tiger, I mistakenly told OSX to use Microsoft Word as the default application to handle .sit files. Of course, I meant to use Stuffit Expander. Does anyone know how to change this?

    I just found the answer to my own question. If anyone else is having similar issues, go here (http://www.rubicode.com/Software/RCDefaultApp/), download this (RCDefaultApp), and all your problems will be solved.

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

  • Xdg (or Gnome 3) default applications

    I want to change the default applications for certain files as determined by xdg, in this case under cinnamon/gnome 3 but I want it to apply across all DEs implementing freedesktop.org standards.
    I have emacs and gvim installed. They both have .desktop files in /usr/share/applications/ which specify their mimetype associations. I happen to have installed emacs after vim, and now I have /usr/share/applications/mimeinfo.cache which seems to be generated from the other files, with lines like, for example:
    text/plain=emacs.desktop;gvim.desktop;
    Which I assume causes emacs to be selected as the default plain text editor (as indeed it is by xdg-mime query default text/plain shows).
    I have three questions:
    1. How can I change the default text editor without editing mimeinfo.cache (I assume it is auto-(re)generated) and without removing emacs' mime types (which are correct and should stay)?
    2. How do I regenerate mimeinfo.cache?
    3. Is there a GUI that allows me to do this stuff (ideally without having to find a file of a particular type to open first - I have tried in Gnome 3: 'System Settings > Details > Default Applications' and there are only a few default 'application types' there, not mime types, and none of them is text editor)?

    With reference to: http://standards.freedesktop.org/deskto … 01s07.html
    In answer to 1:
    It seems the preferences are handled 'externally', and although it doesn't make it clear where it seems to be in /usr/share/applications/defaults.list, I edited min
    [Default Applications]
    x-scheme-handler/spotify=spotify.desktop
    text/plain=gvim.desktop
    (in answer to 2:)
    I then ran 'sudo update-desktop-database'
    And now:
    $ xdg-mime query default text/plain
    gvim.desktop emacs.desktop
    But I'm still interested in the answer to 3, in particular a tool that would change groups of supported mime types and allow you to pick and choose from the lists defined per applications would be useful...

  • No default applications to open items with varied extentsions

    Not being the most technologicaly advanced human here...I repeeatedly am unable to open downloaded files with any extensions other than the basic ones. Right now there are desktop files with .asf, .exe,.wmv extensions that when I try to open them I get the message that "there is no default application specified to open the document "hurl.exe". Is quicktime supposed to handle these files?
    Also, when using Safari, I am unable to import graphics into my clip art gallery in Word AND and PDF download from Safari opens just the first page (Still seemingly in HTML) of the doc with no scroll bar or means tonavigate to any other part of the doc.
    any thoughts out there?
    Thanks!

    I can give some partial answers. Perhaps someone who is more knowledgeable can do a better job.
    I believe that the .exe files are executable files under a Windows operating system. I don't think that you can normally open these in Mac OS X. Perhaps if you had a PC emulator on your computer, you could do that.
    There is some info on .asf files here. It looks like you can open these with Windows Media Player and there is a download site listed for them. Likewise, Windows Media Player evidently will open .wmv files, as discussed here. I have not personally used these types of files or WMP.
    I am confused by your questions regarding Safari. Let's take the case of a PDF file. After it is downloaded, I would expect it to open in Preview unless you have changed something in your preferences. Does that happen? What happens if you double click on the PDF file on your desktop. Does it open normally>
    EMAC G4 1.0 GHz   Mac OS X (10.3.9)  

  • [Gnome 3] Default application for Calendar

    Hi,
    I have done a fresh install of Arch Linux with Gnome 3 yesterday. I haven't installed evolution, I have installed thunderbird with lighting. But in default applications, Gnome 3 show only gedit like calendar app:
    Is this an Arch bug or Gnome bug?

    thunderbird is not a calendar application unless you tune it up with an extension. therefore it shouldn't be in there
    but if you really want it there,you need to append to /usr/share/applications/thunderbird.desktop, to MimeType, text/calendar;text/x-vcard, then run as root update-desktop-database -q
    Last edited by wonder (2011-10-06 13:50:15)

  • Default external protocol handler not listed as alternative

    In Windows I have registered my own handler for an external protocol in the registry. When I click the link in Firefox or Thunderbird I'm shown the "Launch Application" dialog in which I should choose an application for handling the protocol, but the program I've registered as default handler is not listed as an alternative i.e. the only entry in the list is "Choose an Application"
    Observations:
    * I'm never shown a message stating that the protocol is unknown, i.e. the registry entry is found
    * The links works as expected in IE.
    * If I register the application to another of my programs I get an entry in the dialog for some programs, but not for others. I haven't found any difference in the programs that would cause them to be listed or not. Icons are never shown in the dialog, although defined in the protocols registry settings.
    * If I put an illegal program path in the registry I get an entry in the dialog!?
    * The same problem occurs regardless of the protocol identifier I choose
    * Behaviour is the same regardless if the protocol is registered under HKEY_CLASSES_ROOT or HKEY_CURRENT_USER\Software\Classes
    * If I change "network.protocol-handler.warn-external-default" in about:config to false my program is successfully launched when clicking the link
    * Currently running on Windows 7 Starter Edition, but the same happens on other versions of Windows 7 and Windows Vista 64-bit as well

    I found the cause for the problem. It was caused by the applications version info in my case. My applications are created with Delphi 2010.
    If I create a small test project and don't check the project option "Include version information in project", the application is shown in the dialog (actually the applications path and arguments are shown as defined in the registry).
    If I check the project option "Include version information in project" the application is only shown in the dialog list if I put text in the FileDescription field.
    In my opinion Firefox should always show the application regardless of the version information supplied. If FileDescription is missing Firefox should fallback to using the ProductName or the applications path.

  • [SOLVED]epiphany, default applications

    Hi,
    after installing gimp epiphany used it as the default application for opening pdf files...very annoying,
    i worked around that with this hack:
    cp ~/.mozilla/firefox/3la1zdhr.default/mimeTypes.rdf ~/.gnome2/epiphany/mozilla/epiphany/
    looks like gnome is in the process of ripping out the firefox backend....so this will probably be solved in the future.
    but for now i would like to tell epiphany to download .nzb files to some specific dir or open it with a shell script - how do i do that?
    Last edited by metalfan (2009-02-16 23:01:53)

    I have the same problem. From what I can see, it's because gimp is listed before evince in /usr/share/applications/mimeinfo.cache:
    grep pdf /usr/share/applications/mimeinfo.cache
    This file is generated with the update-desktop-database command. So I came up with two non-permanent solutions.
    1.  Put evince before gimp in /usr/share/applications/mimeinfo.cache and repeat each time the update-desktop-database command is run, like when you update an application.
    OR
    2. Remove the pdf entry from MimeType line in /usr/share/applications/gimp.desktop and run update-desktop-database as root. You've got to repeat this fix whenever you update gimp.
    I hope that helps.

  • [SOLVED] pcmanfm lost default applications settings for office docs

    I'm not sure if it was the Libreoffice recent update or not, but I no longer have any application settings for office documents (ppt, doc, xls, ods, odp, odt, etc.). When I right click to choose an application, none are listed. I tried the suggestion from the wiki to install gnome-menus but the situation was no better after a logout/login.
    Even inputting a custom command like:
    /usr/bin/soffice --impress %f
    does not work. It seems that the "Open with" dialog is completely function-less.
    Any suggestions/experience with this?
    Last edited by jwhendy (2011-08-09 22:50:41)

    I fixed this. I just had to figure out the correct mimetypes and re-add them. I still believe this used to be down automatically, but not a big deal. Part of my problem was trying to use xdg-mime to set defaults for "application/ppt" when it's really "application/powerpoint."
    I found this list of mimetypes that was really helpful for setting defaults for .doc, .xls, and .ppt.
    There are also listings for the correct mimetypes for .odt, .ods, and .odp. In the end, my ~/.local/share/applications/defaults.list looks like this:
    [Default Applications]
    application/pdf=evince.desktop
    txt/application=emacs.desktop
    tex/application=emacs.desktop
    application/powerpoint=libreoffice-impress.desktop
    application/msword=libreoffice-writer.desktop
    application/excel=libreoffice-calc.desktop
    application/vnd.oasis.opendocument.presentation=libreoffice-impress.desktop
    application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
    application/vnd.oasis.opendocument.text=libreoffice-writer.desktop

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

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

  • Set default application for *all* users

    Hello people, my 1st post here, so forgive me for possible imprecisions, ambiguity, inappropriateness....
    When I search how to set/change the default app for opening some type of file I always find the answer "through the getinfo". But doing that, I only change the default application for the current user.
    I want to do that for all users of my mac, without repeating the getinfo process for each of them.
    Is there any adminstrative tools for doing that?
    Thank you.

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • Open file in default application with unsigned webstart

    Hi,
    Is it possible to open a document in the user's default registered application (on the OS) from an unsigned Java webstart application?
    I don't mind if the user gets a warning, but the only thing I found was the ability to save a file (also with a user warning), but I'd like to automatically open the document generated by the webstart application in the default application on the OS registered for the file association. In this case either a *.xlsx (Excel/OpenOffice) or *.xml file
    Any ideas?

    You can use BasicService.showDocument() to do this, however you will get a blank windows opened in the default browser.

Maybe you are looking for

  • Unicode issue (# in FILE) URGENT

    Hi, I am uploading a file with GUI_UPLOAD and downloading this file again on the SAP Server with OPEN DATASET IN BINARY MODE / TRANSFER / CLOSEDATA SET on a UNICODE system. When I look in AL11 to the downloaded file I see a lot of # (#<#?#x#m#l# #v#e

  • Trouble to sinc with Nokia Suite and Nokia c6-01

    Hello Could you please help me,I can only add a new appointment with my computer by using outlook and and can not add it directly on my phone ...there is everytime  trouble to sinc Runtime Error ! Program: C:\Program Files (x86)\Nokia\Nokia Suite\Nok

  • Chapter-ID Error in MIGO for STO Invoice

    Dear Guru,                  While doing MIGO for STO Invoice Chaper-id error in coming,  Even though  chapteri-d is maintained for the Material i am getting chaper -id not updated  error , Please help. regards rajakarthik

  • Sequence get the last value (or store the .NEXTVAL anywhere)

    Hi there, I created some tables and one table references the other (foreign key). Now I want to add some test data and insert rows to both tables. My problem is: The "insert into command" for table a uses a sequence value to create the primary key. N

  • Co(td)error in figl

    Hi Friends, i have some problem  co , some errors are araised. that is 1)Process Activate DataStore Object Data, variant DSO Activation has status Ended with errors      2)No SID found for value 'UNI' of characteristic 0UNIT           3)Process 00001