Welcome to our website.

Add Windows Terminal to the Desktop Right-Click Menu

You can add frequently used programs to the Windows right-click menu so they can be launched directly from the desktop background. For example, after adding Windows Terminal, the context menu will show a custom entry that opens it immediately.

example

Using Windows Terminal as an example

  1. Open Registry Editor: press Win + R, type regedit, and press Enter.
  2. In Registry Editor, go to the following location:
   HKEY_CLASSES_ROOT\Directory\Background\shell
  1. In the tree view on the left, right-click the shell key, choose New, and then choose Key.
  2. Name the new key with the text you want to appear in the right-click menu, such as Open Windows Terminal.
  3. Under this newly created key, create another key: right-click it, choose New, and then choose Key.
  4. Name this subkey command.
  5. Set the default value in the right pane: double-click the default value under the command key, and in the string editor, enter the executable path for Windows Terminal. By default, the Windows Terminal executable path is:
   C:\Users\你的用户名\AppData\Local\Microsoft\WindowsApps\wt.exe

Note: If you installed a different version of Windows Terminal, or installed it in another location, change the path accordingly.

Add an icon to the menu item

The steps above only add the launch entry. If you also want the right-click menu item to display a Windows Terminal icon, add an Icon string value to the same registry key.

  1. Prepare an icon file, usually in ICO or PNG format. You can look for one in the program’s installation directory or use your own icon file.
  2. In Registry Editor, find the Windows Terminal menu item you just created and navigate to:
   HKEY_CLASSES_ROOT\Directory\Background\shell\Open Windows Terminal
  1. In the right pane, right-click an empty area, choose New, and then choose String Value.
  2. Name the new string value Icon.
  3. Double-click the Icon string value and set its value data to the full path of your icon file. For example, if the icon file is named terminal.ico and is stored in the C:\Icons folder, the path would be:
   C:\Icons\terminal.ico

Make sure the path is correct and that the icon file can be accessed from that location.

Related Posts