Hi.
I'm using WINE 1.8 rc4 on Debian 8 with XDCE 4.10.1.
I have an old Windows text editor, PFE. I want to use this as the default handler for a bunch of Linux MIME types - .c, .h, .txt, etc - so that PFE will be the editor invoked when I double click on those files type in Linux.
How do I do this?
I've been trying to figure this out for about ten man-hours now.
I've found a bunch of posts about how to *REMOVE* the MIME type over-rides WINE imposes on Linux, but nothing on how to deliberately make new over-rides, and I've tried to emulate how the existing over-rides work, but I can't get that to work at all.
PFE I should say is not an application - there's no installer. You just have a zip file with an exe inside; I think WINE does some special magic if you do a proper install (presumably invoking various registry keys or something like that?)
I can set file type associations within PFE, but this is having no effect on Linux.
How to make a WINE app the default for a native MIME type
-
- Level 1
- Posts: 7
- Joined: Thu Jan 21, 2016 4:00 pm
-
- Level 1
- Posts: 7
- Joined: Thu Jan 21, 2016 4:00 pm
Re: How to make a WINE app the default for a native MIME typ
I've just made a bit of progress - but only a bit.
In XFCE, I selected "Open With Other Application..." and then "Use a custom command" and set this to;
wine pfe %f
This half-works. PFE opens - but with this error;
File 'Z:\home\winterflaw\"\home\winterflaw\Documents\test\test.csv" does not exist.
Note the bizzare path. I have carefully checked it and what I have written is correct.
It opens with a single quote, does not close with one, have the home path part twice and as we see has the real path in double quotes. It might be though the double quotes are actually two single quotes side by side - and I just can't tell, given the font size and the shaping of the glyphs in question - that would certainly make a lot more sense.
In XFCE, I selected "Open With Other Application..." and then "Use a custom command" and set this to;
wine pfe %f
This half-works. PFE opens - but with this error;
File 'Z:\home\winterflaw\"\home\winterflaw\Documents\test\test.csv" does not exist.
Note the bizzare path. I have carefully checked it and what I have written is correct.
It opens with a single quote, does not close with one, have the home path part twice and as we see has the real path in double quotes. It might be though the double quotes are actually two single quotes side by side - and I just can't tell, given the font size and the shaping of the glyphs in question - that would certainly make a lot more sense.