How Do You Issue a Filename to Open in Open With?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ThreeDays
Level 1
Level 1
Posts: 8
Joined: Sat Jun 14, 2008 4:45 am

How Do You Issue a Filename to Open in Open With?

Post by ThreeDays »

How Do You Issue a Filename to Open in Open With?

I want to allow win32's Repligo to open .rgo files in KDE. The string I'm using but doesn't work is ;

Code: Select all

env WINEPREFIX="/home/default/.wine" wine "C:\Program Files\Cerience\RepliGo Viewer\RepliGoView.exe" %U
Repligo is a fantastic PDF style document viewer and especially fast and good for PDA's. You can get the viewer from http://cerience.com/ . The viewer works in KDE/Kubuntu but I just want to be able to right mouse menu to open them with. The viewer also has a printer drivers for windows to allow you to print to RGO format. Not sure if that works in Wine. I use the Cerience Mobilizer to convert pdf's.

Thanks for any help. I've tried various combinations.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How Do You Issue a Filename to Open in Open With?

Post by vitamin »

ThreeDays wrote:How Do You Issue a Filename to Open in Open With?

I want to allow win32's Repligo to open .rgo files in KDE. The string I'm using but doesn't work is ;

Code: Select all

env WINEPREFIX="/home/default/.wine" wine "C:\Program Files\Cerience\RepliGo Viewer\RepliGoView.exe" %U
Repligo is a fantastic PDF style document viewer and especially fast and good for PDA's. You can get the viewer from http://cerience.com/ . The viewer works in KDE/Kubuntu but I just want to be able to right mouse menu to open them with. The viewer also has a printer drivers for windows to allow you to print to RGO format. Not sure if that works in Wine. I use the Cerience Mobilizer to convert pdf's.

Thanks for any help. I've tried various combinations.
http://wiki.winehq.org/FAQ#head-68d921c ... 58d76ff51f
ThreeDays
Level 1
Level 1
Posts: 8
Joined: Sat Jun 14, 2008 4:45 am

Post by ThreeDays »

Thx, but that is the opposite. I want linux to pass its filename to the wine processed application program.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Right click on an .rgo file in Konqueror, select open with, other, select your app from the list of programs, check the box for "Remember application association for this type of file" and click OK. (If your app is not on the list for some reason, click the file folder icon to browse to it.)

This is not a Wine issue. Questions about your desktop environment should be asked in your distro's support forums.
ThreeDays
Level 1
Level 1
Posts: 8
Joined: Sat Jun 14, 2008 4:45 am

Post by ThreeDays »

dimesio wrote:This is not a Wine issue. Questions about your desktop environment should be asked in your distro's support forums.
Your answer doesn't work.

I want a file to be opened with a win32 application in linux/kubuntu when I double click the file. I think the only solution is to make a script that I can associate the script with building the right command.

You'd think wine would be able to pass on the commandline item that equals to the filename.
ThreeDays
Level 1
Level 1
Posts: 8
Joined: Sat Jun 14, 2008 4:45 am

Post by ThreeDays »

There' s kind of some help here but I couldn't get it working.

https://help.ubuntu.com/community/Wine# ... sociations
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

ThreeDays wrote:Thx, but that is the opposite. I want linux to pass its filename to the wine processed application program.
Along the same ways, except you use "winepath -w". And if your program even registered to to handle particular file type then all you need is:

Code: Select all

wine start `winepath -w "$1"`
ThreeDays
Level 1
Level 1
Posts: 8
Joined: Sat Jun 14, 2008 4:45 am

Post by ThreeDays »

THANKS. (+ to Vitamin too.)

This worked from the link dimesio listed!

Code: Select all

env WINEPREFIX="/home/USERNAMECHGME/.wine" wine start.exe /Unix %U
Substitute your username...

Thanks again guys.
Locked