Skip to content

Add 'Restart Windows Explorer' command, implemented using Restart Manager #39258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/spell-check/expect.txt
Original file line number Diff line number Diff line change
@@ -1716,6 +1716,7 @@ trx
tsa
TSender
TServer
tskill
tstoi
TStr
tweakme
Original file line number Diff line number Diff line change
@@ -110,6 +110,13 @@ public static List<IListItem> GetSystemCommands(bool isUefi, bool hideEmptyRecyc
});
}

results.Add(new ListItem(new ExecuteCommandConfirmation(Resources.Microsoft_plugin_sys_RestartShell_name!, confirmCommands, Resources.Microsoft_plugin_sys_RestartShell_confirmation!, static () => OpenInShellHelper.OpenInShell("cmd", "/C tskill explorer && start explorer", runWithHiddenWindow: true)))
{
Title = Resources.Microsoft_plugin_sys_RestartShell!,
Subtitle = Resources.Microsoft_plugin_sys_RestartShell_description!,
Icon = Icons.RestartShellIcon,
});

// UEFI command/result. It is only available on systems booted in UEFI mode.
if (isUefi)
{
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@ public static partial class Icons

public static IconInfo RestartIcon { get; } = new IconInfo("\uE777");

public static IconInfo RestartShellIcon { get; } = new IconInfo("\uEC50");

public static IconInfo ShutdownIcon { get; } = new IconInfo("\uE7E8");

public static IconInfo SleepIcon { get; } = new IconInfo("\uE708");

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -417,4 +417,16 @@
<data name="Microsoft_plugin_ext_fallback_display_title" xml:space="preserve">
<value>Open System Command</value>
</data>
<data name="Microsoft_plugin_sys_RestartShell" xml:space="preserve">
<value>Restart Windows Explorer</value>
</data>
<data name="Microsoft_plugin_sys_RestartShell_description" xml:space="preserve">
<value>End and restart the Windows Explorer shell process</value>
</data>
<data name="Microsoft_plugin_sys_RestartShell_name" xml:space="preserve">
<value>Restart</value>
</data>
<data name="Microsoft_plugin_sys_RestartShell_confirmation" xml:space="preserve">
<value>You are about to restart Windows Explorer, are you sure?</value>
</data>
</root>
Loading
Oops, something went wrong.