mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 03:09:06 +03:00
wezterm: windows installer: add Open WezTerm here context menu to explorer
When installed by the installer, we add registry entries to configure directory context entries in explorer.exe that enable "Open WezTerm here" to function. This works by running your default program with the current working directory set to the one specified. I plan to only enable this when installed by the installer so that these can be deleted/updated by the installer later on. If you want wezterm to run a different program by default, then you can change the default_prog config in the wezterm configuration; I don't plan on adding lot of context menu entries for this. Note that attempting to open in the `C:\` root doesn't always seem to work for me. I haven't had a chance to understand what's going on there. refs: https://github.com/wez/wezterm/issues/155
This commit is contained in:
parent
264ba0d8b6
commit
71d98d84ca
@ -56,6 +56,14 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de
|
||||
[Run]
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[Registry]
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\Open WezTerm here"; Flags: uninsdeletekey
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\Open WezTerm here"; ValueName: "icon"; ValueType: string; ValueData: "{app}\{#MyAppExeName}";
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\Open WezTerm here\command"; ValueType: string; ValueData: """{app}\{#MyAppExeName}"" start --no-auto-connect --cwd ""%V\\"""
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\shell\Open WezTerm here"; Flags: uninsdeletekey
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\shell\Open WezTerm here"; ValueName: "icon"; ValueType: string; ValueData: "{app}\{#MyAppExeName}"
|
||||
Root: HKA; Subkey: "Software\Classes\Directory\shell\Open WezTerm here\command"; ValueType: string; ValueData: """{app}\{#MyAppExeName}"" start --no-auto-connect --cwd ""%V\\"""
|
||||
|
||||
[Code]
|
||||
{ https://stackoverflow.com/a/46609047/149111 }
|
||||
const EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
|
||||
|
Loading…
Reference in New Issue
Block a user