Thanks seb. The script worked perfectly for me (Ubuntu 10.10 / Wine 1.2.1). Maybe, for completeness sake, you can add to the instructions a final step to make the .pl file executable (chmod 777).
If you can get the icons to show that would be great!!!!
If Ghisler was to port TC to Linux that would be even better
Unfortunately the file on uploaded.to was deleted. Can anyone upload it somewhere again please?
@seb:
I couln't try out your wrapper yet, but it sounds very good! Maybe it would be helpful for the future if you post the PERL code here in this topic. Or as alternative, upload it on Google-Code so everyone can easily search/access/response to it.
Dominus wrote:So no reason to use the wine wrapper.
It seems I just stumbled upon an even easier way to open stuff in the default linux program, without any registry editing. Simply go into Internal Associations in Total Commander's file menu, click Add, type in *.* as filetype, click OK, type in:
c:\windows\system32\winebrowser.exe "%1"
in the Open-field, click OK and OK - Done!
This way can also be used to make TC show icons for the files too, but you might have to create one association for each filetype/icon, and be sure to drag the *.* association to the bottom of the list.
Astevon wrote:It seems I just stumbled upon an even easier way to open stuff in the default linux program, without any registry editing. Simply go into Internal Associations in Total Commander's file menu, click Add, type in *.* as filetype, click OK, type in:
Unfortunately it does not work if there is accented characters in either the filename or the path. Whereas if I enter "winebrowser <filename>" from the commandline field it works even with accented characters.
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine. The Prophet's Song
In Total Commander
Menu item Files -> Internal Associations
Click Add, then in File Type line enter *.*, click OK
in Actions Open box enter C:\run_prog "%1"
Click OK, OK
Try it, it should work
works perfect!! Thank you so much!
Only the icons are not displayed as usual but who cares... thank you again!
I recognized the first "not so well"-association: JPGs are opened with Gimp (normally/outside TC JPGs are handled by a program caled Viewnior: http://xsisqox.github.com/Viewnior on my system). How can I adjust this?
For some reason the wine-solution with the run_prog did not work with my Mint Linux.
If I doubleclick the script NOTHING happens. Maybe s.th. was wrong with the way I did it:
I created the script by copying the two lines into a notepad window, saved the file not as txt, but without ending and then made it executable as described. Anything wrong with that?
It would really be great, if I managed to get that working since all other suggested Linux-alternatives to TC are lacking some features.
UPDATE: Problem solved. The mistake was that I created the file with notepad. It has to be created in some Linux text-editor, like e.g. gedit. Now it works.