Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: How to associate files with PlayOnLinux installed MS Office

  1. #21
    Join Date
    Oct 2012
    Beans
    6

    Re: How to associate files with PlayOnLinux installed MS Office

    Here is a slightly modified version based on forrestcupp post to make it work on kubuntu 12.04:
    • Go to your home folder then press Alt-. to see the hidden files then go to .local/share/applications
    • In the applications folder right click-->Create New-->Link to Application.
    Click the application tab and in the name field enter the desired name of the file for example ‘Microsoft Word 2007’ and in the command field enter
    Code:
    playonlinux --run "Microsoft Word 2007" z:%f
    and click OK.
    • Go to ~/.PlayOnLinux/shortcuts and right click on the file ‘Microsoft Word 2007’ then open with then Kate.
    • Replace
    Code:
    $@
    located at the end of the file with
    Code:
    "$(echo "$@" | sed -e 's:/*/:\\:g')"
    and DO NOT LEAVE OUT THE QUOTES.
    • Now right click on the file you want to open with word 2007 then properties then click on the wrench icon then click add. You should find the ‘Microsoft Word 2007’ file you created before under the ‘Lost & Found’ tab.
    • Click OK and you are done.

  2. #22
    Join Date
    Jul 2011
    Beans
    1

    Re: How to associate files with PlayOnLinux installed MS Office

    thks very clear

  3. #23
    Join Date
    Feb 2013
    Beans
    12

    Re: How to associate files with PlayOnLinux installed MS Office

    Quote Originally Posted by changing View Post
    Thanks for the instructions. It works like a charm.
    I changed the last line into the following, and no need to use two .desktop scripts for one program.
    "$(echo "$@" | sed -e 's:/*/:\\:g' | sed -e 's/^z:$//')"
    How can I do it without 2 .desktop scripts? Its not a big deal just a little annoying having 2 Words show up in dash and I'm probably gonna accidentally click on the wrong one at somepoint when I'm not paying attention.

    Otherwise, this is awesome! Thank you!

  4. #24
    Join Date
    Oct 2011
    Beans
    103

    Re: How to associate files with PlayOnLinux installed MS Office

    Thanks a lot, works Perfectly!

    btw, you can use a package called alacarte to create the .desktop files more easily

  5. #25
    Join Date
    Nov 2007
    Location
    Athens
    Beans
    13
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to associate files with PlayOnLinux installed MS Office

    Thanks a lot. It works fine, even with filenames inclusing space.

  6. #26
    Join Date
    Jun 2013
    Beans
    8

    Re: How to associate files with PlayOnLinux installed MS Office

    Thanks for the guide, it was very helpful!
    I noticed recently that PlayOnlinux has file association functionality now, in Settings->File Associations, might be worth a try too. (Didn't try it myself since I had already done it like described here.)
    Edit: I just tried the option today - you have to update to the newest version of Playonlinux from the website (the one in the ubuntu softwarecenter is older) for it to work though. Then you can easily configure them, and after that you have to right-click on your files, do "open with", set "playonlinux" as default and it will work from then. (Also works with filenames with spaces and strange characters here).
    Last edited by Dinosawer; September 15th, 2013 at 06:24 PM.

  7. #27
    Join Date
    Aug 2013
    Beans
    1

    Re: How to associate files with PlayOnLinux installed MS Office

    Great tutorial and info above, in my case I performed in a different way which worked perfectly for me:

    1) Firstly, I created the shortcuts based upon the PlayOnLinux shortcut:
    cd /usr/share/applications
    sudo cp PlayOnLinux.desktop PlayOnLinux-msword.desktop
    sudo cp PlayOnLinux.desktop PlayOnLinux-msexcel.desktop
    sudo cp PlayOnLinux.desktop PlayOnLinux-mspowerpoint.desktop


    2) Then, I changed the content of each .desktop file and adjusted the contents as follows (In my example, I used MS-Word)
    Also, notice that I changed the Category to 'Office' which makes more sense for me):

    sudo gedit PlayOnLinux-msword.desktop

    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=Microsoft Word 2010
    GenericName=Office
    Comment=Microsoft Word 2010
    Type=Application
    Exec=playonlinux --run "Microsoft Word 2010" %F
    Icon=/home/max/.PlayOnLinux/icones/full_size/Microsoft Project 2010
    Categories=Office;


    3) Using Nautilus, enter into any directory which you have all different file-types (.doc, .docx, .ppt, .pptx, .xls, .xlsx)

    4) Point your mouse over any MS-document, press the right button, click on "Properties" and then select the tab "Open With"
    Select your desire MS application in the list and click on "Set as default"

    5) Repeat the step 4 for each file-type (.doc, .docx, .ppt, .pptx, .xls, .xlsx)


    That's it !! Enjoy !


  8. #28
    Join Date
    Jun 2014
    Beans
    1

    Re: How to associate files with PlayOnLinux installed MS Office

    thanks ! very helpful

  9. #29
    Join Date
    Nov 2008
    Location
    Terra firma
    Beans
    11
    Distro
    Ubuntu

    Re: How to associate files with PlayOnLinux installed MS Office

    Cool it worked in debian wheezy

  10. #30
    Join Date
    Aug 2012
    Beans
    6

    Re: How to associate files with PlayOnLinux installed MS Office

    3ill - thanks for your suggestion, it worked for me on 14.04 64 bit. Once I had run your script, I then had the option of changing mime defaults in Nautilus. Full marks to both, or more of you.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •