LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using native Linux apps from within WINE (https://www.linuxquestions.org/questions/linux-newbie-8/using-native-linux-apps-from-within-wine-404870/)

Scrooloose 01-18-2006 06:44 AM

Using native Linux apps from within WINE
 
I am yet another Linux newbie...

Okay, not totally. I've used RedHat 6, Mandrake 9 and now I have Mandriva 2006. This time though, it's not just for a week before I format and go back to Windows!

In the enterprise where I work, we are using Lotus Notes as our e-mail system. I've managed to get it running very well under Wine 0.9.5, and I'm quite happy with the performance and stability and all that jazz.

My question is, can I use Linux apps to view the attachments from the mail software, or do I have to go and install all of the things like Adobe Acrobat Reader and some image viewers into Wine now?

I can't imagine installing MS Office into Wine if I already have OpenOffice.Org in native Linux.

Any advise would be very cool. I've tried the WineHQ and googled to my wit's end...

saman007uk 01-18-2006 08:26 AM

Linux can look at any files from WINE, as WINE stores locally on ~/.wine

Scrooloose 01-19-2006 12:15 AM

I figured that one out already, but the question is HOW?

Since WINE is a Windows Environment emulator, it means the apps think they're in Windows too. So they check the file associations in the Registry to see which app should be used to open an attachment. How do I tell WINE which app to use?

Edit the WINE registry? How do I call a Native Linux app from within WINE?

amosf 01-19-2006 01:15 AM

I don't use an automated method... ie I save attachments or doc in wine to a common folder the then open them separately with a linux app... I know you can get linux associations to open wine apps, but I haven't tried to do t the other way to be honest...

Scrooloose 01-19-2006 01:27 AM

One important thing I left out: I'm using KDE...

Anyway, I just figured out how to do it. The answer is a script. First, modify the WINE registry...

[HKEY_CLASSES_ROOT\.sxw]
@="sxw.document"
[HKEY_CLASSES_ROOT\sxw.document]
@="sxw.document"
[HKEY_CLASSES_ROOT\sxw.document\shell]
[HKEY_CLASSES_ROOT\sxw.document\shell\open]
[HKEY_CLASSES_ROOT\sxw.document\shell\open\command]
@="C:\\windows\\command\\start.exe kdestart.exe \"%1\""

Then create a link called kdestart.exe to the following script:

#!/bin/bash
i=`winepath -u "$*"`
kfmclient exec "$i"


She is wekking!


All times are GMT -5. The time now is 06:18 PM.