Skip to content

fix: start explorer when the bar closes under rs-shell (#302) - #317

Open
321215665 wants to merge 1 commit into
Lemxy:mainfrom
321215665:321215665-patch-1
Open

321215665 wants to merge 1 commit into
Lemxy:mainfrom
321215665:321215665-patch-1

Conversation

@321215665

Copy link
Copy Markdown

Fixes #302. When WinRust runs as the shell (rs-shell), explorer.exe is not running, so there is no native Shell_TrayWnd. Right-click closing the bar called show_taskbar() which found no taskbar to show, leaving the user with no taskbar at all. This fix detects the missing taskbar and starts explorer with the user's normal token (winrust_common::proc::start_shell_explorer) to bring back the native taskbar. Also fixes the --restore path which calls show_taskbar the same way.

When WinRust runs as the shell, explorer.exe is not running, so there is no
native Shell_TrayWnd. Right-click closing the bar called show_taskbar() which
found no taskbar to show, leaving the user with no taskbar at all. Detect the
missing taskbar and start explorer with the user's normal token to bring the
native taskbar back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 右键关闭winrust的任务栏后,未自动切换回Windows原生任务栏

1 participant