You are not logged in.

#1 2012-02-16 03:18:19

minimal
Member
From: Quito, Ecuador
Registered: 2009-10-29
Posts: 56

Can I associate WINE apps to open MS Office type files in Gnome3?

Hello,
I am stuck, well, I think getting closer.  I just bought a second hand PC  2 weeks ago.  I have a Archlinux setup on it with Gnome 3 (fallback mode) and got it looking a lot like Windows7 so the family don't complain its no good.. wink

I have everything working nicely, MS Word, Excel & Powerpoint inside Playonlinux and have my shortcuts on Desktop, etc.. for kids' homework assignments.  I edited my menus with Alacarte and generally its all looking good.  I figured out the necessary usbpl module quirks to get my 2 USB printers working on it as well.

I am really stuck with file associations.  I have been reading the Archwiki article on Xdg-open and I now have the following ~/.local/share/applications/defaults.list file

[Default Applications]
inode/directory=Thunar File Manager.desktop
application/vnd.openxmlformats-officedocument.presentationml.presentation=Powerpoint2007.desktop;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=Excel2007.desktop;
#application/vnd.openxmlformats-officedocument.wordprocessingml.document=playonlinux --run "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /home/nenas/Downloads/"$docname";

#application/vnd.ms-word.document.macroenabled.12=playonlinux --run "/home/nenas/.PlayOnLinux/wineprefix/Office2007/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE $docname";
application/vnd.openxmlformats-officedocument.wordprocessingml.document=playonlinux --run "/home/nenas/.PlayOnLinux/wineprefix/Office2007/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE $docname";
text/html=chromium.desktop

I look in Chromium Downloads or Thunar file manager and click on the .docx .xlsx and .pptx files.  I am able to get the programs to open but unfortunately not the filename I am clicking on, much less when the filenames contain spaces in them.  At the moment it simply opens the program (which is a great start).  but I am sure I should be able to get the clicked filename to open too.

Has anyone successfully done this?  What about for files with spaces in the name?

I found this useful site where others say they have succeeded but i just can't get it to work:
http://www.playonlinux.com/en/topic-3375.html

Can anyone see where I am going wrong (with MS Word association at least)?

thanks a lot,


Peter


|\/|
_________________________________________________________________________________________
Never judge a man until you have walked 1000 miles in his shoes.
..that way you'll be 1000 miles away and you'll have his shoes.

Offline

Board footer

Powered by FluxBB