How to get a wine program added as as open with

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

How to get a wine program added as as open with

Post by hairybiker »

OK have searched around and can't find a solution.
I have QuickPar installed under wine. On Mate it just worked and added itself to the open with menu, but on Cinnamon it doesn't.

I have tried adding a custom launcher, but it launches QP but not with the file selected.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to get a wine program added as as open with

Post by Flemur »

On Mate it just worked and added itself to the open with menu, but on Cinnamon it doesn't.
Hmmm.

If you don't find a semi-automatic solution, below is how I run wine programs compatible with "Open with" on file browsers.

This is an executable file, ~/bin/iview, which passes parameters (i.e. file names) :

Code: Select all

 #!/bin/sh

QUICKPARLOCATION="c:\\pgms\\IrfanView\\i_view32.exe"
PARAM=`winepath -w "$*" 2>/dev/null`
wine "$QUICKPARLOCATION" "$PARAM" &
exit 0
In file browser, "Open with" -> iview
Command line: $ iview file.jpg

Obviously, change your QUICKPARLOCATION= to the right .exe
The quotes should handle the spaces in "Program Files" (I install under 'pgms' instead).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: How to get a wine program added as as open with

Post by hairybiker »

Cheers that works.

Bit of a faff compared to Mate though.
The QuickPar config sets itself up to associate with par/2 & md5 files, but it doesn't seem to be getting passed to nemo.
Locked

Return to “Cinnamon”