Windows-terminal-context-menu icon indicating copy to clipboard operation
Windows-terminal-context-menu copied to clipboard

File doesn't have app associated with it

Open vaishnavm217 opened this issue 5 years ago • 4 comments

image

Currently using Windows terminal stable with custom profiles in settings.json

vaishnavm217 avatar Jul 10 '20 04:07 vaishnavm217

same issue here

ryudice avatar Jul 16 '20 22:07 ryudice

Same issue as well and getting an error when installing:

C:\Users\Rafael> C:\Users\Rafael\Desktop\terminal\SetupContextMenu.ps1
Copy icons => C:\Users\Rafael\AppData\Local\WindowsTerminalContextIcons\
Add top layer menu (shell) => Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\WindowsTerminal
Add top layer menu (background) => Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\WindowsTerminal
ConvertFrom-Json : Invalid JSON primitive: .
At C:\Users\Rafael\Desktop\terminal\SetupContextMenu.ps1:91 char:10
+ $json = (ConvertFrom-Json -InputObject $rawContent);
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

Working with the old profiles style
Skip entry  => Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\ContextMenus\WindowsTerminal\shell\01

RafaelDeJongh avatar Jul 25 '20 01:07 RafaelDeJongh

I am going to quote myself but the problem does not appear when you install PowerShell 7, with it everything works as intended!

RafaelDeJongh avatar Jul 25 '20 01:07 RafaelDeJongh

image

Currently using Windows terminal stable with custom profiles in settings.json

same issue, please help, tried with PowerShell 7

shivamsinha99 avatar Jul 27 '20 07:07 shivamsinha99