9.0b2: "F3-key [Extensions]" do not work properly

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

9.0b2: "F3-key [Extensions]" do not work properly

Post by *sas2000 »

 
Hi, i've upgraded from 8.51a to 9.0b2 (W7 32bits) and i've noticed that Wincmd.ini [Extensions] do not work properly

For example Xnview

Code: Select all

[Extensions]
jpg=C:\Program Files\XNVIEW\XNVIEW.EXE
When pressing F3 a window appears indicating that C:\Program Files\XNVIEW\XNVIEW.EXE can't be found, thanks
 
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2sas2000
Try this way:
[Extensions]
jpg=
"C:\Program Files\XNVIEW\XNVIEW.EXE"
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Thanks, but it doesn't work. But if use the same Wincmd.ini on Tc8.51a then Xnview is used to open Jpg, so i think that maybe it's a bug.

BTW this happens with other programs included in [Extensions], not only with Xnview.

I have checked Quick View panel and it works ok with Xnview and the path is the same

Code: Select all

IViewPath=C:\Program Files\XNVIEW\XNVIEW.EXE
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50547
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I'm not aware of any change in this function. I will check it.
Author of Total Commander
https://www.ghisler.com
mikiqex
Junior Member
Junior Member
Posts: 3
Joined: 2011-11-08, 09:05 UTC

Re: 9.0b2 Extensions

Post by *mikiqex »

I have this problem as well, I accidentally created a duplicate post about this (now deleted), so here is what I wrote there:

in Configuration > Edit/View > Associations I have defined external viewers for some extensions (in my case editors), e.g. Paint.NET for PNG or Audacity for MP3.

When I press Alt+F3 in TC (=External Viewer) on PNG or MP3, TC shows a dialog saying: File not found! + path to associated program's executable, which does exist, as confirmed using Run dialog in Windows.

In my case the paths are: "C:\Program Files\Paint.NET\PaintDotNet.exe" and "C:\Program Files (x86)\Audacity\audacity.exe".

Alt+F3 on unassociated file types runs default editor, as expected. Please let me know if you need more info from me.

Win10 Pro 64bit, TC 9.0beta2 32bit (didn't work in beta1 either, but did in TC 8.x).

Thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50547
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, found it - it needs to be configured like this:

[Extensions]
jpg=""C:\Program Files\XNVIEW\XNVIEW.EXE""

Why? The outer "" are cut by the ini reading functions. Without quotes, the command is seen as:
Command: C:\Program
Parameters: Files\XNVIEW\XNVIEW.EXE

TC8.x was more fault tolerant. I will add it back.

Btw, the "" are added automatically when you define a new type now.
Author of Total Commander
https://www.ghisler.com
mikiqex
Junior Member
Junior Member
Posts: 3
Joined: 2011-11-08, 09:05 UTC

Post by *mikiqex »

In my wincmd.ini I had no quotes there in Extensions section and it didn't work for me with double ones, but single quotes did the trick, e.g.:

[Extensions]
jpg="C:\Program Files\Paint.NET\PaintDotNet.exe" ^.jpg

Thanks!
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
ghisler(Author) wrote:OK, found it - it needs to be configured like this:
[Extensions]
jpg=""C:\Program Files\XNVIEW\XNVIEW.EXE""
Now it works OK, thanks Christian :!:  -   (Tc9b2 - W7 32bits)
 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50547
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

jpg="C:\Program Files\Paint.NET\PaintDotNet.exe" ^.jpg
That's another alternative: Since the double quotes don't go around the entire string, Windows doesn't remove them when reading from the ini file...
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Yup. Indeed fixed in b3.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Post Reply