filetype association for any filetyp

Questions about Wine on Linux
Locked
rollo5
Newbie
Newbie
Posts: 2
Joined: Mon Aug 19, 2013 4:04 am

filetype association for any filetyp

Post by rollo5 »

Hallo,

I'm searching for a way to run the native filemanager (rox) in locate32, when i double click on a file.

If you search a file in locate32, it creates a list of hits. Now I want to run rox, if you double click on a file, to make file operations like copy or move or to open it with native applications.

I got it working only with pdf files. Here is what i did:

I created a file "association.reg":

Code: Select all

[HKEY_CLASSES_ROOT\.pdf]
@="PDFfile"
"Content Type"="pdf"
[HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command]
@="/bin/sh transform_path run_rox \"%1\""
and did register it with the "regedit" command.

Then created two files:

First: a file called "transform_path":

Code: Select all

#!/bin/sh
$1 "`wine winepath -u "$2"`"
Second: a file called "run_rox":

Code: Select all

#!/bin/sh
rox -s "$1"
I put both files into the "/bin" directory.

As you can think, the problem is that now I have to do this with all filetypes (maybe unknown filetypes, too). Is there generell way? This would very improve my workflow on this linux machine.

regards, rollo
rollo5
Newbie
Newbie
Posts: 2
Joined: Mon Aug 19, 2013 4:04 am

filetype association for any filetyp

Post by rollo5 »

If there is no general solution for this. Maybe we can make another approach: Often there is the case we can select "Open path" if we are right clicking on a file and then it opens winefile. Is there a way not to use winefile and instead a native filemanager?
Locked