442 Commits
Author SHA1 Message Date
EH 729c3686d0 Start button's context menu: add the Win+X menu (#2578)
Open-Shell takes over the right-click on the start button, which in
Windows opens the Win+X menu (Terminal (Admin), Device Manager, Disk
Management and so on). Shift+right-click still opens it, but nothing on
screen says so, and the Controls setting can only swap the two menus,
not offer both.

Win+X Menu is now in the context menu, in the section of Windows
Explorer and Open, on Windows 8 and later. It calls ShowWinX(), as
Shift+right-click does. EnableExplorer doesn't remove it: that setting
is about opening folders, and Win+X opens none. The help's Operation
section mentions Shift+right-click and the new item.

Menu.WinXMenu is a new string, in English only for now. A Start Menu
(Windows) item was in an earlier version and was dropped in review:
Open-Shell's own menu has that item by default.
2026-11-07 21:30:08 +01:00
EHandge0rdi 7e6a31b4d6 Add Reload to the start button's context menu (StartMenu.exe -reload) (#2577)
* Add Reload to the start button's context menu

Reload exits the menu and starts it again, so it goes through startup
anew: settings, the item and icon caches in memory, and the hook into
Explorer. Useful after something the running menu does not notice, like a
Store app updating itself under a pinned shortcut. Until now that took Exit
and starting StartMenu.exe again by hand.

The item sits above Exit, shown and disabled under the same conditions
(EnableExit, CanShowMenu), since it exits first. It starts
"StartMenu.exe -reload" from the DLL's own folder, so it works for any
install location.

StartMenu.exe -reload is the new part. Like -exit it posts MSG_EXIT to the
running menu, but then it waits for that process to end (up to 20 s) and
carries on as a normal start, owning the single-instance mutex. It waits
for the process, not only the mutex: the old menu releases the mutex just
before it exits, and the new one should hook Explorer only once the old one
is gone. "-reloadsettings" also contains "-reload", so -reload counts only
when no other command matched.

The label is Menu.MenuReload, in English only for now; other languages fall
back to the English default until translated.

* Help: Reload on the start button's menu and StartMenu.exe -reload

The Operation section lists what the start button's right-click menu
does; it now includes reloading. The Settings section said a few settings
need the menu to be exited before they show; reloading is the direct way
now, so it says that. The Command Line section gets -reload, next to
-exit, including that it just starts the menu when none is running
(checked on the real machine).

It also no longer counts the parameters: "supports 5" was already short
of what StartMenu.exe accepts (for example -reloadsettings), and adding
one made it 6 of more.

* Move the reload steps into their own functions

The -reload handling sat inline in wWinMain, three levels deep, with two
bare timeouts. It is now TakeOverFromRunningMenu, with the timeouts named
and explained, and wWinMain keeps a three-line call. The start button's
Reload item calls ReloadStartMenu instead of building the path inline.

One difference, on purpose: if the running menu's window is found but its
process can't be opened, the old code still told the menu to exit, then
gave up waiting and left no menu running. Now it leaves the running menu
alone and returns, as when no menu is found.

---------

Co-authored-by: ge0rdi <ge0rdi@users.noreply.github.com>
2026-11-07 13:51:31 +01:00
EH 844da62e2c Fix Explorer crash when Open-Shell exits while the menu is open (#2576)
CleanStartMenuDLL called CloseManagers() before CMenuContainer::CloseStartMenu().
When the start menu was still open at exit, destroying it ran
CMenuContainer::OnDestroy -> g_SearchManager.CloseMenu(), which locks the
search manager's critical section. CloseManagers had already deleted that
lock, so Explorer crashed with an access violation in
ntdll!RtlpWaitOnCriticalSection. This order dates back to at least the
Classic Shell -> Open-Shell rebrand and is in 4.4.198 and current master.

The menu, the settings window and the owner window are now closed before
the managers are shut down.

Found with a crash dump (WER LocalDumps + full page heap on explorer.exe):
  StartMenuDLL!CSearchManager::CloseMenu+0x2d  (SearchManager.cpp:139)
  StartMenuDLL!CMenuContainer::OnDestroy+0x361
  ...
  StartMenuDLL!CMenuContainer::CloseStartMenu+0xa0
  StartMenuDLL!CleanStartMenuDLL+0x605
  StartMenuDLL!HookDesktopThread+0x7e6
  FAILURE_BUCKET_ID: NULL_CLASS_PTR_WRITE_AVRF_c0000005_StartMenuDLL.dll!CSearchManager::CloseMenu

Reproduce: start StartMenu.exe, run "StartMenu.exe -open", and while the
menu is visible run "StartMenu.exe -exit". Explorer restarts.
Verified on Windows 11 (26100): unmodified master crashed Explorer in every
run with the menu open at exit; with this change, 5 of 5 such runs exited
cleanly.
2026-11-07 13:23:40 +01:00
ge0rdi 9dfa7fa5c3 StartMenu: add project reference to StartMenuHelper
This way StartMenuHelper will be built along with StartMenu and also
resulting binary will be automatically deployed during remote debugging.
2026-10-16 17:43:07 +02:00
ge0rdi 9eeed15c90 Changing AllTaskbars setting should properly refresh Start buttons 2026-10-16 17:42:55 +02:00
YellowNestandge0rdi 2c6b668ccd Add dark mode support to Classic Explorer toolbar and status bar (#2553)
Add dark mode support to Classic Explorer

Port and harden the Classic Explorer dark-mode work developed by @DartVanya for issue #361. Keep this change limited to toolbar, tooltip, rebar, and custom status-bar rendering; toolbar locking remains separate.

Co-authored-by: ge0rdi <ge0rdi@users.noreply.github.com>
v4.4.202
2026-10-12 21:55:00 +02:00
YellowNest e1fe220d18 Release settings accessibility servers before DLL unload (#2558) 2026-10-07 22:02:16 +02:00
YellowNest a43cf39441 Cancel pending hover timer before showing Win+X (#2554)
Cancel hover timer before showing Win+X
2026-10-05 16:56:35 +02:00
YellowNest 93db2153c0 Prevent out-of-bounds user image writes in menu background (#2548)
Clip user image alpha writes to menu bitmap bounds
2026-10-05 16:52:01 +02:00
YellowNest 88e8cd8653 Restore Explorer shell if setup leaves it stopped (#2552)
Restore Explorer shell after successful setup
2026-10-05 08:52:18 +02:00
YellowNest ef61ce1dc0 Fix false empty entry in custom submenus (#2551)
Fix empty placeholder in custom submenus
2026-10-05 08:14:13 +02:00
YellowNest 2e2f681c5b Prevent cache writer use-after-free during cleanup (#2550)
Protect cache save snapshots from concurrent cleanup
2026-10-04 17:47:53 +02:00
YellowNest 523ff4b9f4 Validate cached icon indices before remapping (#2549) 2026-10-04 17:45:54 +02:00
YellowNest 1e7a52a5ab Fix context menu command thread affinity (#2546) 2026-10-04 17:41:09 +02:00
jbgrimsbyandjbgrimsby 1384d4eb04 Improve screen reader, keyboard, and High Contrast accessibility (#2518)
* Improve screen reader and keyboard accessibility

* Fix settings page repaint regression

---------

Co-authored-by: jbgrimsby <314385300+jbgrimsby@users.noreply.github.com>
v4.4.201
2026-09-15 13:56:16 +02:00
hamid da73edf4ea Added setting to horizontally offset start button (#2524) 2026-08-30 14:06:16 +02:00
ge0rdi f66d5ce50b Fix source indexing
`actions/checkout@v6` clones repo from URL that doesn't contain `.git`
at the end.

We were removing last 4 characters of the URL which resulted in wrong `REPO_URL`
in source index and debugger was thus unable to fetch sources.

The fix is to remove last 4 characters of URL only if there is `.git` at the end.
2026-08-30 13:27:52 +02:00
ge0rdi c9e791fc79 Update README with code signing section 2026-07-24 19:42:41 +02:00
ge0rdi fe6b144058 Delete temporary artefacts during official build
They are needed only for signing.
2026-07-19 12:10:03 +02:00
ge0rdi 97bae48048 Use VS2022 toolset (due to Win7 support)
VS2022 is the last VS that does support Windows 7.
It seems we have some Win7 users, so for now we will use this toolset
to make sure binaries are compatible with Win7.
v4.4.200
2026-07-19 11:09:29 +02:00
ge0rdi 9a274c1297 Revert "Use VS2026"
This reverts commit 8502d4bd7b.

VS2026 dropped support for Windows 7. Most of binaries produced by
VS2026 don't work on Win7 because the use API that doesn't exist on
Win7.
2026-07-19 10:59:58 +02:00
ge0rdi 462a8709b2 Fix "properties" command
It seems that "Properties" context menu command is handled directly by
shell and it requires to be invoked on the same thread that created
actual context menu object.

So we will distinguish this case and invoke command directly. For the
rest we will use separate thread to not block main UI thread.

Fixes #2502
2026-07-18 21:42:49 +02:00
ge0rdi 95bbb17faf Allow automatic restart sign-on (ARSO) 2026-07-17 19:19:10 +02:00
ge0rdi 37fdea7964 Use C++20 by default 2026-07-17 16:37:56 +02:00
ge0rdi 8502d4bd7b Use VS2026 2026-07-17 16:37:24 +02:00
ge0rdi 8713a69200 Sign with SignPath
Fixes #1732
v4.4.199
2026-07-15 14:25:37 +02:00
ge0rdi b264f96525 Split build steps into binaries, installers, archives 2026-07-15 14:25:37 +02:00
ge0rdi 07ead0baf8 Utility: Fix clash with windows API 2026-07-15 14:25:36 +02:00
ge0rdi 566bb81c7e Fix "Explore" getting stuck after Windows 11 update 2026-07-15 14:14:10 +02:00
ge0rdi 4fd5545485 Fix "Open file location" getting stuck after Windows 11 update
We will run InvokeCommand API on separate STA thread and pump messages while waiting for them to finish.

Fixes #2303
Fixes #2321
Fixes #2375
2026-07-15 14:14:10 +02:00
ge0rdi 86e8a24b16 [ExplorerPatcher] Improved EP taskbar detection (#2493)
EP changed their `ep_taskbar*.dll` naming scheme.
We will look for module whose name starts with `ep_taskbar` which
should be compatible with both old and new naming.

Fixes #2474
2026-07-15 14:12:25 +02:00
ge0rdi 9518c3b650 Make sure to run release step only on manual builds from master 2026-05-30 22:00:09 +02:00
ge0rdi f15a0fbd75 Adjust wording of IDS_STARTSCREEN_ITEM
Fixes #2472
2026-05-29 20:09:03 +02:00
ge0rdi 7baba47baf Add github build badge 2026-05-16 08:27:14 +02:00
ge0rdi f5fa8f0ea3 Add github build workflow 2026-05-16 08:20:47 +02:00
ge0rdi dfb307b3b7 Fix C++23 warnings
warning C5333: backslash and newline separated by space is treated as a line continuation in C++23 and later
2026-05-13 20:07:54 +02:00
ge0rdi b2070640ff Fix open/save file dialog getting stuck after Windows 11 update (#2457)
We will run those APIs on separate STA thread and pump messages while
waiting for the dialog to end.

fixes #2431
fixes #2426
fixes #2418
fixes #2417
fixes #2390
fixes #2372
fixes #2371
fixes #2370
fixes #2364
fixes #2361
fixes #2360
fixes #2343
fixes #2332
fixes #2322
fixes #2320
fixes #2319
fixes #2312
fixes #2299
v4.4.198
2026-05-12 21:12:51 +02:00
coolvitto 7566280973 Update font face names in Japanese localization (#2409) 2026-05-11 19:24:28 +02:00
Nicholas N.andClaude 32ad90f17d Fix search auto-selecting wrong item before programs finish loading (#2451)
fix: defer auto-select until programs loaded to prevent wrong search result selection

When search results refresh mid-collection, OnRefresh auto-selects the
first result item. If programs haven't loaded yet, Settings category
appears first and gets selected. If user hits Enter in that window,
wrong item launches.

Skip auto-select when search is still in progress and no programs
have been found yet. Next refresh after programs load will select
correctly.

Fixes Open-Shell/Open-Shell-Menu#456
Fixes Open-Shell/Open-Shell-Menu#1982
Fixes Open-Shell/Open-Shell-Menu#4

> 🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-18 15:18:23 +02:00
Anixx e2758ec376 Support for unthemed taskbar (#2369)
* Support for unthemed taskbar

See this discussion:
https://github.com/Open-Shell/Open-Shell-Menu/discussions/2367

* Refactor color handling in StartMenuDLL
v4.4.197
2026-01-24 11:26:25 +01:00
ge0rdi dd57854da1 Scale custom button image according to current DPI (#2248)
Fixes #2246
2025-12-12 09:09:21 +01:00
ge0rdi 40d8f5b119 AppVeyor: New deployment token 2025-11-30 16:02:35 +01:00
benja2998 4ebeadd949 Remove another '>' symbol (#2243)
Remove another 'z
2025-06-25 17:27:18 +02:00
benja2998 dc1994e713 Remove random '>' symbol in readme (#2223) 2025-05-25 07:23:42 +02:00
ge0rdi 8c713cc5fd Update ARM notice in readme 2025-05-24 08:31:51 +02:00
Matthijs Lavrijsenandge0rdi 58b909037f Add ARM64 support (#641)
* Add ARM64 build configurations to projects

* StartMenu: add ARM64 support

* Add support for IAT hooking on ARM64

* Add ARM64 support to Classic IE

* Add ARM64 support to installer

NB: WiX 3.14.0.3910 or higher is required to create the MSI

* Revert whitespace change

* Separate x86/x64 and ARM64 installers

* Change suffix of ARM64 binaries

* Put also ARM64 MSI to final installer

* Fix sln

* Build some DLLs as ARM64X

These are meant to be loaded to both x64 and ARM64 processes.
We will compile them as ARM64X (when building for ARM64).
That way they will contain both x64 and ARM64 code paths.

https://learn.microsoft.com/en-us/windows/arm/arm64x-pe

* Make sure x64 installer cannot be installed on ARM64

In case if somebody manually tries to install x64 MSI on ARM64.
This is not supported/working scenario.

---------

Co-authored-by: ge0rdi <ge0rdi@users.noreply.github.com>
v4.4.196
2025-05-08 10:14:56 +02:00
ge0rdi 146c27ecd2 Fix tray button positioning 2025-03-13 07:11:37 +01:00
ge0rdi 4943938d0f [ExplorerPatcher] Don't shift custom start button on Win11 2025-03-13 07:11:36 +01:00
ge0rdi d5c561720d [ExplorerPatcher] Fix taskbar texturing
Fixes #2094.
2025-03-13 07:11:26 +01:00
ge0rdi 58d804d22a Remove obsolete links from help
Fixes #2148
2025-03-02 11:18:32 +01:00