10 years ago
Despite the efforts of many Linux developers I didn't find any good replacement for my favorite file manager - Total Commander. It's very personal opinion, but if you feel the same you may also have same problem using TC on Linux - running associated app after hitting ENTER (double click)
I tried several approaches. First - associations in registry. But it was virtually impossible to associate every single file extension with correct application. So I used some tool called wine wrapper - it takes file with extensions in categories and associated application and creates reg file. But the problem remains - every new extension must be registered.
Then I find very easy way. With help of xdg-open utility you can inherit associations from Linux. So instead of annoying registry editing, you have to do two things:
#!/bin/sh /usr/bin/xdg-open "`wine winepath -u "$1"`"Make that script executable (open terminal in drive C):
hanax@Wadjet ~/.wine/drive_c $ chmod +x ./run_prog
Just my 2 cents: I have to rename the script "run_prog" to "run_prog.exe" because Total Commander doesn't detected the script as a valid executable program.
Anyway the best file association alternative so far!!