CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Set Word As Perferred Application

I just finished installing CrossOver and it works like a charm.
Paid support has ended. (Long story:)

When I click on a file with a .xls extension excel opens no problem.
However when I click a file with a .doc extension abiword opens.

I need to change the default application for .doc file to word.
However I have to specify a path ...

Thanks in advance for and advice and suggestions offered

Hi,

Well it would seem you system default filetype associations
are throwing to abiword and not where you want them to hook to.
Sometimes this is in the association preferences within the
Crossover installation config itself. Other times it's system
filetype/mime-type associations taking precedence.

You say you need to specify a path -- could you explain in
a bit more detail exactly where this path is being asked for?

Cheers!

My apologies Don, I was trying to keep my post brief ...

The system is a Debian based (Lenny) derivative distribution (MEPIS) running a XFCE 4.6 desktop.

Problem is I had installed AbiWord as a word processor and set this as the default application for files
with a .doc extension.

CrossOver appears to work as advertised expect that when click on file with a .doc extension AbiWord opens.
When click on file with a .xls extension Excel opens.

When I un-installed AbiWord, Mousepad became the default application.

Thunar,the XFCE file manager will allow me to reset this association by entering a custom command in text box.
Problem is I have no idea what should go in this text box. If I could see what the Excel entry looks like ...

Thanks for your input Don

Hi again,

  Ahh....I don't think that will be in XFCE ; my guess is it's a system  

wide file association config that's part of the base Debian make-up. Likely,
it's a gnome component...my thinking is it's probably somewhere in gconf-editor
as that's the only thing I can think of that would change the extension assignment
like you describe when installing/removing abiword...ie; XFCE wouldn't change the
extension association, the system directives would (as abiword is installed system
wide, not just in your $HOMEDIR)...

Hope this helps....

Cheers!

Ok, I think the correct path to specify would be:

~/cxoffice/bin/winword

when trying to specify the default application using Thunar the file manager in Xfce.

However a error message pops up:

Failed to add new application "winword"

Failed to execute child process "update-desktop-database" (No such file or directory).

However I can change default applications for other types of files. (jpeg,text,mp3)

I should probably stop gnawing on this bone :)

I can always open up Word from a menu and then the relevant document.

Thanks again for your input Don.

Hi,

The command "update-desktop-database" is part of the desktop-file-utils
package (in linux) -- Thunar has attempted to run this command, however
it will not have found 'winword' in $PATH (which it isn't ;) and hence
the failure message. I think the shortcut command you need to create
association to would be something like;

"C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /a

The actual command itself will obviously differ dependent on which
release of Office you have, but this should give you the idea.

For reference, I'm citing this from the following page;

http://www.codeweavers.com/support/wiki/cxofficeapp

"How can I open a .docx document?"

Cheers!

Hello !

I've just installed Crossover Pro on my Ubuntu 10.04, with Gnome window manager.
I've the same behavior as described upper, I can open XLS or XLSX files but neither .ppt or .doc(x) will open, even if I launch the command in the crossover console. I also tried to disable-enable the association, without success.

I've been experiencing this "bug" for a long time, but I don't know how to solve it.. Any idea ?
Word and Powerpoint are both set by default and nothing happens when I double click on the files.

Thanks !

Hi there,

Alright....if one goes to one of the M$ Office pages here in C4 and downloads
the associated C4P installer profile...lets pick on this one;

http://www.codeweavers.com/compatibility/browse/group/?app_parent=1545;

Load the up into you preferred text editor and look for the following code;


 <defaulteassoc>.asf</defaulteassoc>
 <defaulteassoc>.asx</defaulteassoc>
 <defaulteassoc>.ade</defaulteassoc>
 <defaulteassoc>.adp</defaulteassoc>
 <defaulteassoc>.doc</defaulteassoc>
 <defaulteassoc>.dochtml</defaulteassoc>
 <defaulteassoc>.dot</defaulteassoc>
/* blah */        
 <defaulteassoc>.pps</defaulteassoc>
 <defaulteassoc>.ppt</defaulteassoc>
 <defaulteassoc>.ppthtml</defaulteassoc>
 <defaulteassoc>.pwz</defaulteassoc>
/* blahblah */ 
 <defaulteassoc>.xla</defaulteassoc>
 <defaulteassoc>.xlb</defaulteassoc>
 <defaulteassoc>.xlc</defaulteassoc>
 <defaulteassoc>.xls</defaulteassoc>
 <defaulteassoc>.xlshtml</defaulteassoc>
 <defaulteassoc>.xlt</defaulteassoc>
 <defaulteassoc>.xlthtml</defaulteassoc>
/* blahblahbla */ 
 <alteassoc>.ppa//open</alteassoc>
 <alteassoc>.pps//new</alteassoc>
 <alteassoc>.ppt//new</alteassoc>
 <alteassoc>.ppt//show</alteassoc>
 <alteassoc>.xlt//open</alteassoc>

So it would seem, from a C4P based install standpoint, these default associations
-should- be set....what you describe however, mimic's Tom's issue closely - it's
interesting you mention using Gnome as your WM -- this makes me more suspicious
this behavior is coming from Gnome somewhere -- XFCE has hooks back into Gnome as
well you see. Umm.....this -has- to be in gnome somewhere surely, it's the only
thing that figures in correctly...lemme look at Lenny here again....ahh....

Understand I don't have Office so I'm having to make this up as I go along...I'll
presume you have Office installed into a Crossover bottle...and that you have a
.doc file on your desktop. In Gnome, right click on the blah.doc icon and select
properties, Click on the 'Open With' tab -- you will see there the applications
the system has associated with the .doc file extension. Click on the '+Add' button...

...now it starts to get all gray on me....you will see two tabs -- installed applications
and available applications. The former tabs contains all apps, the latter those which
is thought capable of opening a .doc file -- I can't do this, so you'll have to check
both tab panels to see if Crossover either registered itself, or else registered M$
Word as being capable of handling .doc If Crossover is in the installed applications
tab, you can probably use that and Crossover will work out what to do -- if it doesn't
know what to do, perhaps the bottle containing the Office installation has to be set
as the default bottle....

...if nothing related to Crossover or Office appears in either tab, my guess is that
something is wrong 8) If that's the case, you'd have to specify a custom command ...
...@Tom, this is probably what you're after for Thunar as well....presuming a system
wide installation of Crossover, the command line would be something like;

/opt/cxoffice/bin/wine --bottle "bottle_name" --cx-app Word

Change bottle-name to that of the bottle you have Office installed into, and I can't
be sure if 'Word' is correct - you'll probably know the actual exe name. I do note the
.doc extension is described as a mime-type in gnome, so there must be some place to
edit your system mime-type settings...

Cheers!

Thank you 1000 times for your precise and complete answer.

I've written this in the custom command :

/opt/cxoffice/bin/wine --bottle "Microsoft Office 2007" --cx-app WINWORD.EXE

And it works perfectly !

Now I'll do the same for .doc and ppt(x) files.

Thanks again !

This is definitely a little bit of a pain. My easy way around is the open MS word from Windows application menu then open the word file itself from there. Unfortunately, you can not go into properties of file and associate easily that the doc files always be opened by crossover MS office.

Hi there!

I’m having the same situation, but on a mac.

I want to open the .doc files with MS Word installed trough CrossOver, but I can’t make the desired app to be the default one.

Does anyone have accomplished this on a mac?

Thank you very much.

Hi Licinio,

This is dead easy on a Mac - although I haven't done it for Word I have done it for Visio. You just use the Mac associations:

In Finder, right click on a .doc file and select 'Get Info'. A new window opens and about half way down is a pane titled 'Open with'. Click on the drop down box and select the application that should be visible there. Then click on the button underneath the dialogue box to 'Change All'.

After that, it should open CrossOver and Word and the same time by double-clicking any .doc file.

As I say, it worked for my Visio installation, but you might have to guess which is the CrossOver version of Word on your system. On mine, I have two Visio programmes shown; one opens Visio in CrossOver, the other opens Visio in Parallels. Needless to say, the CrossOver version opens much, much quicker.

Good luck

Stephen

1 to 12 of 12

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM2MzczNjgxLCJjc3JmX3Rva2VuIjoiTHg2WHJHY1N5cEg5TnZSNCIsImdkcHIiOjB9