A bug exists when set as the default file manager.

210 views
Skip to first unread message

KimPig

unread,
Jan 17, 2023, 8:20:05 AM1/17/23
to OneCommander
If I open a specific path in another program, both OneCommander and default File Manager are turned on. In addition, only the default File Manager is sometimes turned on.

Is there any other solution? I remember that other file manager programs (ex directory opus) were not like this.

Milos Paripovic

unread,
Jan 17, 2023, 1:53:36 PM1/17/23
to OneCommander
Try running RestoreExplorerAsTheDefaultFileManager.reg from onecommander folder and then register it again through settings dialog.
Once clicking checkbox to register, look at the bottom of OC window if it shows any error message.
Directory Opus and other file managers also change the same registry keys that show in that reg file, as that is the only way , but I am not aware of default file manager opening in addition or what could be reasons for that (except for Printers, or other system dialogs that are not actual folders). If you see a pattern for which folder Explorer opens in addition to OC please let me know.

Message has been deleted

KimPig

unread,
Jan 18, 2023, 12:42:02 AM1/18/23
to OneCommander
I re-registered .reg, but it doesn't seem to work properly.

Please check the video I uploaded. The program used is Bandizip
https://youtu.be/dUj4mLUZ7S0
2023년 1월 18일 수요일 오전 3시 53분 36초 UTC+9에 milos...@gmail.com님이 작성:

Milos Paripovic

unread,
Jan 18, 2023, 10:20:43 AM1/18/23
to OneCommander
That one is on Bandizip. To test the registration functionality you can double-click a folder on your desktop or in Chrome>Downloads files click to open containing folder, and check if both OC and Explorer open in those cases also.

KimPig

unread,
Jan 18, 2023, 12:07:29 PM1/18/23
to OneCommander
Yes, this happens with Bandizip. But I remember that other explorer programs worked well with Bandizip.
Is this a problem from Bandizip?

2023년 1월 19일 목요일 오전 12시 20분 43초 UTC+9에 milos...@gmail.com님이 작성:

Milos Paripovic

unread,
Jan 18, 2023, 6:00:36 PM1/18/23
to OneCommander
I know that there was a problem with Unity that it would tell shell to open path in default file manager and then if the explorer doesn't respond (it can't because OC is set in registry) it would open explorer manually. Maybe bandizip works the same way. But I am not sure as I just got an email from user who says this happens for him in Chrome also. I am still on old windows version so I don't know if there was some recent change or another place where.
All file managers replace the same registry keys as far as I know so I don't know why there would be any difference.

Milos Paripovic

unread,
Jan 18, 2023, 11:58:39 PM1/18/23
to OneCommander
When you get a chance please let me know if it works as expected from chrome or firefox or edge, whichever you use. 
If it doesn't work as expected even from those, uncheck register button and check again but look at the bottom of OC window if it shows any errors.

Computer restart might be required

Program sets following key in registry
(you can paste it in regedit address bar)
Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell
registry.png
with the shown subkeys.

Some other file managers set these instead
Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shell
but this should be (Default) with (value not set)
when OC is set as default.
so if there is something there it might be leftover from some other file manager you have set as default in the past

There are root keys that OC doesn't change but they do update automatically

Computer\HKEY_CLASSES_ROOT\Folder\shell
Computer\HKEY_CLASSES_ROOT\Directory\shell
 
Please let me know if it isn't so after a PC restart and if there is something different there.
I don't recommend changing anything there manually.




KimPig

unread,
Jan 19, 2023, 8:20:02 AM1/19/23
to OneCommander
I use a Chromium-based browser called Whale. The browser opens the folder as OC.

I checked the registry and it matches what you said. The value in Folder does not exist.

I don't know what's wrong. I will install another file explorer to see how it changes the registry.

2023년 1월 19일 목요일 오후 1시 58분 39초 UTC+9에 milos...@gmail.com님이 작성:

Milos Paripovic

unread,
Jan 19, 2023, 12:54:46 PM1/19/23
to OneCommander
You can use this to compare registry changes before and after changing some program settings - it is instant while all other registry compare tools take forever

KimPig

unread,
Jan 24, 2023, 3:54:46 AM1/24/23
to OneCommander
I didn't respond for a while because it was a Korean holiday.
I recovered the registry and observed changes in the registry after installing Directory Opus.
Directory Opus had no problems working with Bandizip.
This picture shows the changes in the registry.
이미지 2023-01-24_17-41-21.png이미지 2023-01-24_17-41-04.png

Directory Opus had values in both Directory and Folder paths.
However, as you mentioned, the values "Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Folder\shell" and "Computer\HKEY_CLASSES_ROOT\Folder\shell" were empty in OC's case.

I think this is the cause of the error. What do you think?

2023년 1월 20일 금요일 오전 2시 54분 46초 UTC+9에 milos...@gmail.com님이 작성:

KimPig

unread,
Jan 24, 2023, 4:19:15 AM1/24/23
to OneCommander
XYplorer also creates a registry in the Directory path, but does not create it in the Folder path, and it does not work with the Bandizip.
2023년 1월 24일 화요일 오후 5시 54분 46초 UTC+9에 KimPig님이 작성:

Milos Paripovic

unread,
Jan 24, 2023, 2:14:55 PM1/24/23
to OneCommander
Thanks for the info. For Directory\Shell I see that it just removed OC from registry. Dopus must be doing something with those DragDropHandlers and OpusZip but I don't know what. 
The difference between Directory and Folder is that Folder includes Directory but adds other things that are not filesystem items, so instead of filtering for those each time, OC just sets Directory keys and if user doubleclicks on ControlPanel (Folder but not Directory), OC will not even try to handle that. 
A few months ago OC was using Folder\Shell instead of Directory\Shell. There shouldn't be any difference but this way should be cleaner and my assumption that Directory is checked before Folder anyway for redirecting.
I know that bandizip is handling drop in a special way for large items. I have posted to their ggroups and my question was partially answered by the developer but I have not seen a way to implement what he suggested, and after 3-4h I gave up as it doesn't pay off to me to do so much additional work for a single program support, especially when it is supposed to handle a workaround specifically added to that program only. I don't know how they are handling "open in" but OC in 3.31 supports an additional way to get path and select a file, and if bandizip still doesn't work in that version then they must be doing something completely different.

KimPig

unread,
Jan 25, 2023, 1:10:16 AM1/25/23
to OneCommander
I don't know what's wrong.
When installing DOpus for the first time, there is no problem with Bandizip.
If I turn off and then turn on the default explorer option in DOpus' settings, it doesn't work with Bandizip. Even more strangely, there is no difference in the registry at all. Now I have to suspect if it's not my computer's problem.

2023년 1월 25일 수요일 오전 4시 14분 55초 UTC+9에 milos...@gmail.com님이 작성:

KimPig

unread,
Jan 25, 2023, 4:40:03 AM1/25/23
to OneCommander
I installed Win 11, but the problems are the same. This is not only the case in Bandizip, it will also open in Explorer if I click "Open Local Game Folder" in Steam.

2023년 1월 25일 수요일 오후 3시 10분 16초 UTC+9에 KimPig님이 작성:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages