"Use Windows registered types" ignores association

Here you can report bugs found in Far Manager.
Locked
dee
Posts: 8
Joined: Sun Dec 25, 2005 8:18 pm

"Use Windows registered types" ignores association

Post by dee » Thu Nov 30, 2006 9:04 pm

"Use Windows registered types" in 1.70 build 2087, on Windows XP SP2, ignores file associations in this format:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xxx\Application = open_xxx.exe

Explorer creates file associations this way and other programs (command.com) respect them.

Dee

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Fri Dec 01, 2006 1:04 am

dee
This is not a real file association, it is an explorer only association. Far uses HKEY_CLASSES_ROOT files associations.

dee
Posts: 8
Joined: Sun Dec 25, 2005 8:18 pm

Post by dee » Fri Dec 01, 2006 11:16 am

Windows don't ask user where he wants to store association.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xxx\Application = open_xxx.exe
is the only association user can change and other programs respect it.

It would be useful if FAR respects user settings too.

Dee

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Fri Dec 01, 2006 2:16 pm

dee
Well, Far also has its own file associations (F9->C->a) - you can use them too.

dee
Posts: 8
Joined: Sun Dec 25, 2005 8:18 pm

Post by dee » Fri Dec 01, 2006 2:51 pm

It takes me probably more time to duplicate settings from Windows to FAR than it would take me to fix FAR.

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Fri Dec 01, 2006 4:40 pm

dee
Well, Explorer is also a file manager, why should FAR read settings of other file managers? Far uses windows settings for file association - not explorer settings.

HaRT
Posts: 100
Joined: Thu Mar 09, 2006 6:33 pm
Location: St. Petersburg, Russia

Post by HaRT » Fri Dec 01, 2006 4:57 pm

t-rex
It looks like the basic settings (the associated program, the “Open with” list) are stored under HKCU, whereas Advanced settings (e.g. commands, handlers) are stored under HKCR.

So the suggestion of dee seems reasonable.

User avatar
DrKnS
Posts: 32
Joined: Thu Feb 23, 2006 6:48 pm
Contact:

Post by DrKnS » Fri Dec 01, 2006 5:45 pm

t-rex
FAR already process this type of association, but only if key with same name exist in HKCR.
This should work fine:

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.qwerty]
"Application"="C:\\BIN\\NOTEPAD.EXE"
[HKEY_CLASSES_ROOT\.qwerty]
P.S. FAR 1.71.2144

HaRT
Posts: 100
Joined: Thu Mar 09, 2006 6:33 pm
Location: St. Petersburg, Russia

Post by HaRT » Fri Dec 01, 2006 8:33 pm

DrKnS
It works. Thank you.

dee
Posts: 8
Joined: Sun Dec 25, 2005 8:18 pm

Post by dee » Fri Dec 01, 2006 9:25 pm

Thanks.

Locked