Open documents in libreoffice from chromium [SOLVED]

Hi everyone,
When using chromium, I would like associate .doc(x), .ppt(x), etc. with libreoffice by default (wm - fluxbox).  If I try to click on the file once it has downloaded in chromium (on bar at bottom) I currently get:
/usr/bin/xdg-open: line 455: firefox: command not found
/usr/bin/xdg-open: line 455: mozilla: command not found
/usr/bin/xdg-open: line 455: epiphany: command not found
/usr/bin/xdg-open: line 455: konqueror: command not found
/usr/bin/xdg-open: line 455: chromium-browser: command not found
/usr/bin/xdg-open: line 455: google-chrome: command not found
/usr/bin/xdg-open: line 455: links2: command not found
/usr/bin/xdg-open: line 455: links: command not found
/usr/bin/xdg-open: line 455: lynx: command not found
/usr/bin/xdg-open: line 455: w3n: command not found
xdg-open: no method available for opening 'file.docx'
Here is a link to my full /uxr/bin/xdg-open: http://pastebin.com/tWzs9hqP
Here is the part around that line that looks to be of particular relevance:
IFS=":"
for browser in $BROWSER; do
if [ x"$browser" != x"" ]; then
browser_with_arg=`printf "$browser" "$1" 2>/dev/null`
if [ $? -ne 0 ]; then
browser_with_arg=$browser;
fi
if [ x"$browser_with_arg" = x"$browser" ]; then
"$browser" "$1";
else eval '$browser_with_arg'$xdg_redirect_output;
fi
if [ $? -eq 0 ]; then
exit_success;
fi
fi
done
exit_failure_operation_impossible "no method available for opening '$1'"
The browsers are defined later in the file:
# if BROWSER variable is not set, check some well known browsers instead
if [ x"$BROWSER" = x"" ]; then
BROWSER=links2:links:lynx:w3m
if [ -n "$DISPLAY" ]; then
BROWSER=firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER
fi
fi
I am a rather novice user so I am not sure how to edit the file (if I even should) to make this work.  Any help would be greatly appreciated!
EDIT: if i add "libreoffice:" to the end of the list of browsers it works like I would like it to.  This is obviously not the best method (I am not even certain why it is trying to open the file from other browsers, xdg-open file is quite intimidating) so any "better" suggestions would be very appreciated.
Last edited by Ipozya (2011-03-02 20:17:34)

Ipozya wrote:Thank you for the response.  I installed the package "perl-file-mimeinfo" but it can't find the command when I try to run mimopen.  Any ideas?
run (in a terminal)
mimeopen -d <file>
If the command you want to use does not appear in the list select "Other..." and type the command you want. This command will become the default for opening file of the type <file>.

Similar Messages

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • How to open document to PDF from ALV

    Hi ,
      how to open document to PDF from ALV on clicking (hot spot)
    urgent
    thanks,

    something like this:
    line_fieldcat-fieldname = 'vbeln'.
    line_fieldcat-ref_tabname = 'I_vbeln'.
    line_fieldcat-hotspot = 'X'. " Shows the field as ahotspot.
    line_fieldcat-seltext_m = 'Notification '.
    APPEND line_fieldcat TO i_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = ws_repid
    i_callback_user_command = 'MY_USER_COMMAND'
    and rest of parameters,
    FORM MY_USER_COMMAND USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    IF ucomm = '(Function code of action, say click, or enter'
    CASE selfield-fieldname.
    WHEN 'QMNUM'. "Notification
    IF i_tab-qmnum NE space.
       CALL FUNCTION 'WS_EXECUTE'
          EXPORTING
            commandline = '/F /IM "ACRORD32.EXE"'
            program     = 'TASKKILL'.
    ENDIF.

  • Opening Document in Work from the Sent To Email a Link instead on downloading it

    Documents send via the Sent To > Email a Link SharePoint 2010 Document Library Menu is downloading rather than opening in Word. This is happening for some users and while it is open in Word just fine for other users.
    New to SharePoint

    Hi Marlon,
    Please compare the client Office and IE browser differences of settings between them, check the following things.
    Please use the IE browser 32-bit version, also check if it is competability mode issue.
    Please add SharePoint URLs in IE browser trusted sites zone.
    Please reset the IE browser to default settings.
    Please check and make sure the "SharePoint OpenDocuments class" add-on is enabled from IE browser
    Please repair Office application with installing Office Tools->Microsoft SharePoint Foundation Support component.
    http://blogs.technet.com/b/emeaoffice/archive/2013/04/29/you-get-an-error-message-when-you-open-an-office-file-from-sharepoint-on-a-computer-on-which-you-installed-more-than-one-version-of-office.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Why does my iPad 1 not open documents in pages from my mac after downloading update on pages on mac?

    Why does my iPad 1 not open documents from my updated mac-pro laptop pages since i updated the mac. Have updated latest pages for iPad 1 it could and still not able to open docs as i could before update on mac-pro

    The most recent version of Pages that you can run on the iPad 1, running iOS 5.1.1, is not compaible with the newest version of pages on the Mac.
    If you had the old version of Pages on your Mac, and off hand I can't remember what version it was, you should still be able to use that version and then it will be compatible with the Pages app on the iPad. I updated to the newest version of Pages some time back but was able to keep the older version as well.

  • Can't open document on iPhone from Pages via iCloud

    Trying to open a document on iPhone via iCloud only to get the following error messages from within Pages (iOS version): "Opening this document requires an internet connection".  Am connected to internet using WiFi and the Documents and Data field is set to "Yes" in iClouds section of Settings.  Document is present on iCloud.com.  Tried deleting and reinstalling Pages; turning D&D field to No and back to Yes, rebooting iph00ne

    It seems to be hit or miss if this works or not, but try opening Pages on the iPad, then before you select a document, on the very first screen, hit the "Edit" button, then select your document. Then click the arrow coming out of the box in the upper left corner &amp; email the document to yourself. Try opening the email on a computer, selecting the file and adding the pages file type (.pages) to the end of the name. Then try reopening it in Pages.
    I don't know if this is what happened in your case, but it seems like sometimes iWork documents lose that file type indicator &amp; then Pages (numbers/ Keynote) won't open them.

  • Can't open document in Numbers from iCloud

    I can not open a numbers document from Icloud.  When I try to open the document, which is listed with other documents I get a message saying I must have the newest version of numbers.  I have already updated to Mavericks and the upgraded Numbers.  What can I do to access my document?

    Finally found the problem.  I was opening the old version and found the newer version on launchpad. 

  • I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • Cant open documents in ibooks from dropbox

    When I open a document that I have sent to dropbox, I used to be able to open it and then select "open in ibooks" where it would then be stored.  when I tap the arrow only a blank black square drops down.
    I can still use the open in ibooks feature with other programs.

    Only pdf format is supported in iBooks.

  • Can't open documents

    Hi there. I can't open documents or files from the internet that I download, because I don't have Word. But I'm using OpenOffice, and I thought OpenOffice also could open files and so on, but I just learned that I couldn't. I don't know how to do it, if there's a solution of it. I searched all over the internet, but couldn't find something....
    What should I do?

    drag the files onto OpenOffice (I prefer another office clone called LibreOffice).  Or launch OpenOffice then use the menu item "File > Open" to bring up the open dialog that will allow you to navigate to, and select the Word file you want to open.
    Finally you can associate OpenOffice (or what ever app you like) with .doc and .docx files by right clicking the file then selecting "Open With > Other…":
    The navigate to, and select, the application you want to use to open the file.  Be sure to select the "Always open with" checkbox if you do not want to have to go through this everytime.

  • [SOLVED]Cannot print to PDF files neither from Chromium nor from Firef

    When I open the print dialog and select "Print to file" to print to a PDF file, it works from applications such as gedit, evince, LibreOffice (this one uses a different print dialog, but works anyway), etc. but it is not working when using it from Chromium or from Firefox. Printing to a standard printer from these browsers works.
    When I launch chromium from the terminal and try printing to a PDF file, it outputs this error message in the console:
    [2229:2229:0618/092520:ERROR:print_dialog_gtk.cc(406)] Printing failed: Operation not supported
    When I repeat the process from Firefox, no error message is printed in the console.
    Printing to files was working until recently, I suppose an update broke it. I have Arch installed in 3 different computers (one i686, one x64 and one arm7h), and it is broken in the 3 of them. I'm using XFCE4, and both ghostscript and a2ps are installed.
    Is this a known bug? Can it be solved/workarounded?
    Last edited by doragasu (2013-06-19 06:46:10)

    dag wrote:ya you have to name it for some reason it happens to me too but if i name it it works.
    I didn't believe it until I tried, but you're right! You have to change the default name in the printing dialog and then it works O_oU
    Really weird bug. THANKS!
    Last edited by doragasu (2013-06-19 06:46:35)

  • Cannot open document from SharePoint site

    Hi All,
    Randomly, I got this error when I trying to open a document from SharePoint sites like 'https://sharepoint.partners.extranet.***.com/'. When issue happend, all document cannot be opened from this
    site. Here is the Error message snapshot:
    'sorry, we cannot open 'https://..... ' because the server isn't responding'
    Notes:
    1) The issue only happend to this site and it's children sites.
    2) If you click the button 'Try Again', the issue will be fixed, but later (several hours/days), the same issue happend again.
    3) When issue happenend, other accounts can still open the files. The same account can open docs as well from other machines. But the issue is not related to this account and this machine because I can repro the issue from other machines.
    The issue happend more than 1 year, if you can share something insight that will very helpful. Thank you!

    Hi,
    Please add the URL of the SharePoint site to the list of trusted sites in your browser and check if that helps.
    Cheers,
    Daniel
    Daniel Bugday
    Microsoft Community Answerer, Member of Microsoft Extended Expert Team, MCT, MCTS/MCPD SharePoint 2007/2010, SQL MCDBA, MCSE
    Blog: SharePoint By Bugday
    Contact:
    Please remember to mark your question as "answered" if this solves your problem

  • Opening documents from internet explorer

    Hello Firends,
    "I´ve problem trying to open documents (odt, doc, xls, ...) with OpenOffice since Internet Explorer?? it takes forever to open, two minutes, however, if you open Firefox or from Windows Explorer opens at the same time.
    I tried it with Windows XP SP3, Internet Explorer 6 and later 8.
    This time, as I mentioned, is about two minutes, however, activating the QuickStart reduce opening times to 30 seconds, but still very slow. The problem is that I need to work well in Internet Explorer, so that I can not use Firefox or other browser.
    I've been mulling over a long time and I can not solve. The version used is 3.2 OpenOffice itself can be helpful.
    Thanks in advance for the input.
    Greetings!

    You have three variables: browser, open office, and document being opened.
    Assuming you are opening the same document to get your timing comparisons, we ca drop that as a variable
    For browser, you have either Firefox or IE. For document reader application you have open office.
    --------|--open office --
    firefox | fast
      IE    | slowConclusion, IE is slow. You may just have to live with it. (Or else buy a faster PC. That is what MS tools are good for, justifying PC upgrades. 8^)
    HTH,
    ed

  • HT3775 BDMV" can't be opened because it is from an unidentified developer.  How do I solve this?? Am I losing all the video files I have in my camcorder??? Please help me!!! Thanks

    I am downloading the memory card from my camcorder into my MacBook Pro with Retina display. It usually popped to the file called AVCHD then CLIP to show all the videos. But not this time, it automatically changed to BDMV. I do not have idea how this happened while I left my notebook on and I was away for a couple of hours then back to the living room to work on each video as to type name of file etc.
    Now, I cannot even open them into CLIP because I am still getting BDMV with a popped sign that said BDMV can't be opened because it is from an unidentified developer. (I do not even understand what this is supposed to mean??) also with the bottom message that stated "Quicktime Player created this file yesterday at 1:52pm"  I am like uhhh how can QT player do this without my authorization??
    Please help me how to solve these and get all of my videos back that I saved in my camcorder.  Let you know that I tried to insert the memory card back into my camcorder and all these videos are gone.   Now I am having a HUGE headache because of this!!
    What should I do now???

    HI,
    Did you ever figure out how to get them back? The same thing happened to me yesterday. I was able to open the file in VLC media player (you can download this app), but the file had been corrupted. It was only the last clip I had recorded, all the others were lost. Even the clip that will play is messed up

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

Maybe you are looking for

  • Scenario - Service Tax on Freight

    Hi All, How I can map below scenario - Basic Price - 1000.00 VAT 4 % - 40.00 - Tax code Freight - 100.00 - Condition Type Service Tax on Freight - 25.00 - Not to be inventoried on Material PO Value - 1165.00 Currently we are not adding service tax co

  • Mavericks freezing / Applications not responding

    Before I start this problem is not isolated to one machine. We have around several MacBook Pros from 2012 onwards,  Retina MacBook Pros and iMacs. The Retina laptops came with Mavericks installed. So our general issues are: - Fan noise loud - Machine

  • How to view incompatible updates

    The App Store tells me I have 6 incompatible updates, but I don't know what they are.  How can I see them?

  • IBooks pre-purchase don't work

    I pre-purchased Guild Wars 2 Sea of Sorrows, and this morning I recieved an email that my pre-purchase was ready for download. The email provided a link to download my pre-purchase". I clicked the link. It opens up my iBooks app, purchased books scre

  • SOAPConnectionFactory  error exception

    Hi, I'm new to JMS and I'm trying to follow the sample example to study this topic. I'm using jdk1.3.1_02 for developping, j2sdkee1.3.1 to develop servlets. I'm deploying to a tomcat 4.1 server, using JWSDP 1_0_01. My problem is that I made a servlet