Skip to content

Commit

Permalink
Fixing Open here for Windows Terminal.
Browse files Browse the repository at this point in the history
  • Loading branch information
KUTlime committed Feb 27, 2020
1 parent f926c82 commit a10f0aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion OpenHere/OpenHere.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'OpenHere'

# Version number of this module.
ModuleVersion = '2.0.3'
ModuleVersion = '2.0.4'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -111,6 +111,10 @@

# ReleaseNotes of this module
ReleaseNotes = @'
v2.0.4: (2020-02-27)
- A workaround for Windows Terminal open here shortcut when RMB on directory/drive letter has been added.
- From this version, both Windows Terminal Open here shortcuts use Windows PowerShell for a correct startup.
v2.0.3: (2020-02-24)
- A workaround for Windows Terminal open here as admin has been added.
Expand Down
4 changes: 2 additions & 2 deletions OpenHere/OpenHere.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Get-OpenHereShortcutSetup
$shellSetup.RegistryKeyName = 'WindowsTerminal'
$shellSetup.ShellType = 'WindowsTerminal'
$shellSetup.CommandRoot = 'openWindowsTerminal'
$shellSetup.CommandExecutionValue = "$env:LOCALAPPDATA\Microsoft\WindowsApps\wt.exe -d ."
$shellSetup.CommandExecutionValue = "$env:SystemRoot\system32\WindowsPowerShell\v1.0\powershell.exe -noninteractive -noprofile -command Set-Location '%V';start-process wt -argumentList '-d .'"
$shellSetup.CommandExecutionValueRunAs = "$env:SystemRoot\system32\WindowsPowerShell\v1.0\powershell.exe -noninteractive -noprofile -command Set-Location '%V';start-process wt -argumentList '-d .'"
}
Default { throw [System.ArgumentOutOfRangeException]::('Unknown Shell type.') }
Expand Down Expand Up @@ -126,7 +126,7 @@ function Set-OpenHereShortcut
.NOTES
To override the default shortcut icon, override the Icon.ico file in %LOCALAPPDATA%\OpenHere\[ShellType].
The context menu can be invoked from the menu button and by the right mouse button click.
Windows Terminal doesn't response to Run as Administrator. No explanation is provided so far. The support is
Windows Terminal doesn't responds to RunAs request from the context menu. This problem is a limitation of the UWP platform. A workaround has been implemented to support Windows Terminal shortcut with elevated privileges. A similar workaround had to be implemented for non-elevated Open here Windows Terminal shortcut to support scenarios when requests are invoked from RMB clicks on a directory or a drive letter.
#>
[CmdletBinding()]
Param (
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Get-Help Set-OpenHereShortcut -Examples
```

# Notes
Windows Terminal doesn't responds to RunAs request from the context menu. This problem is a limitation of the UWP platform. A workaround has been implemented to support Windows Terminal shortcut with elevated privileges.
Windows Terminal doesn't responds to RunAs request from the context menu. This problem is a limitation of the UWP platform. A workaround has been implemented to support Windows Terminal shortcut with elevated privileges. A similar workaround had to be implemented for non-elevated Open here Windows Terminal shortcut to support scenarios when requests are invoked from RMB clicks on a directory or a drive letter.

# FAQ
### Are there any plans to extend the functionality of this module?
Expand Down

0 comments on commit a10f0aa

Please sign in to comment.