Skip to content

Commit 1f48eb8

Browse files
authored
feat: support "腾讯桌面整理" (DesktopMgr64.exe) (#297)
* feat: support TencentDesktopMgr * ci: fix failed Added MSVC development command setup step to workflow.
1 parent d03682a commit 1f48eb8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/xmake.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
submodules: recursive
20+
21+
- uses: ilammy/msvc-dev-cmd@v1
22+
with:
23+
arch: x64
2024

2125
- uses: xmake-io/github-action-setup-xmake@v1
2226
with:
@@ -30,7 +34,7 @@ jobs:
3034

3135
- name: Xmake configure
3236
run: |
33-
xmake config -v --yes --toolchain=clang-cl --mode=releasedbg
37+
xmake config -v --yes --toolchain=clang-cl --mode=releasedbg --builddir=build
3438
3539
- name: build-releasedbg
3640
run: |

src/inject/inject.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ std::vector<DWORD> GetExplorerPIDs() {
3939
std::string exeFile(pe32.szExeFile);
4040
if (exeFile == "explorer.exe" ||
4141
exeFile == "OneCommander.exe" ||
42-
exeFile == "360FileBrowser64.exe") {
42+
exeFile == "360FileBrowser64.exe" ||
43+
exeFile == "DesktopMgr64.exe") {
4344
pids.push_back(pe32.th32ProcessID);
4445
}
4546
} while (Process32Next(hSnapshot, &pe32));

src/shell/entry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void main() {
118118
std::views::transform([](char c) { return std::tolower(c); }) |
119119
std::ranges::to<std::string>();
120120

121-
if (filename == "explorer.exe" || filename == "360filebrowser64.exe") {
121+
if (filename == "explorer.exe" || filename == "360filebrowser64.exe" || filename == "desktopmgr64.exe") {
122122
init_render_global();
123123
res_string_loader::init();
124124
context_menu_hooks::install_NtUserTrackPopupMenuEx_hook();

0 commit comments

Comments
 (0)