-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShellExt: Move file extensions list from XML to DLL + implement .lnk shortcut handling #1006
Conversation
I give up on implementing shortcut handling. Seems too much work.
|
Updated file extensions lists generator: MediaInfo_fileextensions.xlsx |
MediaInfo entry is showing on archives now..... |
Fixed in force push. Also noticed MediaInfo is now no longer the first entry in classic context menu. Hope it won't undo the effects of the previous Verb Id renaming workarounds. |
Another attempt. Not easy but managed to get it working. :D Now need to rebase either this or #1002 else there will be no shortcut handling for multi-instance. Also drag and drop in MediaInfo does not handle shortcuts as well as opening a folder containing shortcuts. For |
@JeromeMartinez Ubuntu-latest runner on GitHub has updated to 24.04, 'libwxgtk3.0-gtk3-dev' no longer exists causing CI failure. Update: Fixed in #1007 |
a0beaac
to
cd92d03
Compare
Appears to work fine on my PC. The force push now is just a rebase on current master. |
Great, good to use all the possibilities with a DLL for shell extension.
I see that you rebased/updated while I was writing, thank you again!
Not sure I understand well, with my test drag and drop does not work for
In my opinion it should be in both the shell extension and the library, like |
Only for new Windows 11 context menu. For classic context menu on both Windows 11 and 10, Windows handles shortcuts as previously mentioned. Also as noted on first post, when shortcut leads to a long path, it may not work due to limitations of the API used. Not sure how Windows and Notepad shell extension handles shortcuts pointing to long paths, maybe they use different API but don't know what. Since long paths are rare and other parts of MediaInfo (legacy shell, drag&drop, open dialog) do not support it too, I do not think it is a big problem. Rather, it is a bonus that the new shell extension can open long paths in some cases.
Yes, it does not work. When opening a directory containing shortcuts from shell extension, it does not work too since shell will only pass the directory to MediaInfo and the rest is up to MediaInfoLib in this case.
My opinion is the shell extension will just pass all |
I actually was not aware that Win10 was doing itself the resolution of the name 😅.
I am more into doing like with |
Nobody complains yet but it may be something good to fix at some point, anyway far from important. |
Oh ya, no need network connection now that I think about it. Just need read the correct line from the file. But there will be issue when the url leads to a video file but does not have a video file extension (not idea how common is this). Also need special handling for There's also the issue that Qt one currently does not handle urls as command parameters or as input to file open dialog so need some changes there as well. |
Similar to
I plan to add that to the MediaInfo library so it would be independent from the UI. |
See #994 (comment) and #998 (comment)
Known limitations:
If shortcut target is a long path, it does not work due to path length limitations of
IShellLink::GetPath
.