felixse / FluentTerminal

A Terminal Emulator based on UWP and web technologies.
GNU General Public License v3.0
9.15k stars 443 forks source link

A Correct Way for Explorer Context Menu Integration #1007

Open ZzzzzzzSkyward opened 2 years ago

ZzzzzzzSkyward commented 2 years ago

I just find the documentation don't work on my computer. Here is my way:

  1. open Registry Editor via regedit
  2. find each of the following place (inspired by cmder):
    • HKEY_CLASSES_ROOT*\shell\Fluent Terminal\command
    • HKCU\Software\Classes\Directory\shell\Fluent Terminal\command
    • HKCU\Software\Classes\Directory\Background\shell\Fluent Terminal\command
    • HKCU\Software\Classes\Drive\shell\Fluent Terminal\command
    • HKCU\Software\Classes\LibraryFolder\Background\shell\Fluent Terminal\command
  3. for each of the place, edit its value to be "%LOCALAPPDATA%\Microsoft\WindowsApps\flute.exe new", and for "HKCU\Software\Classes\Directory\shell\Fluent Terminal\command", add an extra %V.
    I've found that with "%1" it also works, but with "%%1" or "%%V" or "%V" it fails. Oops. I now know the quotation marks are not needed.
  4. for each of "command"'s parent directory, the "Fluent Terminal"(this name is arbitrary), edit its value to be the name you want it to show in context menu, like "Open Terminal Here". Then add a string key named "Icon", set its value to be the icon file's path, like "D:\FluentTerminal.ico".