RunCat365 icon indicating copy to clipboard operation
RunCat365 copied to clipboard

Check if Process.Start passes the WACK validation.

Open Kyome22 opened this issue 10 months ago • 5 comments

Ref: https://github.com/Kyome22/RunCat365/pull/251#discussion_r2690286779

// 🐮
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo
{
    FileName = "taskmgr",
    UseShellExecute = true
});

// OR

// 🐸
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo
{
    FileName = "explorer.exe",
    Arguments = "taskmgr",
    UseShellExecute = true
});

Kyome22 avatar Jan 29 '26 06:01 Kyome22

@mor39a I've looked into the implementation of a shortcut to launch the Task Manager.

Surprisingly, the above code passed the WACK (Windows App Certification Kit) validation check. However, based on my online research, since this operation bypasses the sandbox, it's highly likely to be rejected when submitted to the Microsoft Store.

Note that while the implementation 🐮 successfully opened the Task Manager, the implementation 🐸 only opened the Explorer app and failed to launch the Task Manager.

Kyome22 avatar Jan 29 '26 14:01 Kyome22

I was thinking about including the Task Manager launch shortcut in the next version, 3.3.0, but I've decided to scrap it to play it safe.

Kyome22 avatar Jan 29 '26 14:01 Kyome22

I was thinking about including the Task Manager launch shortcut in the next version, 3.3.0, but I've decided to scrap it to play it safe.

Are you discarding it for that version, or permanently?

mor39a avatar Jan 29 '26 16:01 mor39a

However, based on my online research, since this operation bypasses the sandbox, it's highly likely to be rejected when submitted to the Microsoft Store.

I did a bit of research, and it seems that apps that have runFullTrust (like RunCat) don’t have a traditional sandbox. It appears that as long as they are opened by an explicit user request, in a visible and non-repetitive way, and are not used to interfere with other processes, there shouldn’t be any issue. That said, I’ll leave it up to your judgment.

mor39a avatar Jan 29 '26 16:01 mor39a

Are you discarding it for that version, or permanently?

@mor39a No, it doesn't mean it's permanently rejected. Let's focus our efforts on tackling it in version 3.4.0.

Kyome22 avatar Jan 30 '26 01:01 Kyome22