Keep the GUI as the index writer for now; mutex, named pipe, and opt-in logon autostart prepare Explorer.Host.exe without two SQLite writers. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
589 B
C#
20 lines
589 B
C#
using Explorer.Hosting;
|
|
|
|
namespace Explorer.Hosting.Tests;
|
|
|
|
public class HostLogonAutostartTests
|
|
{
|
|
[Fact]
|
|
public void Create_args_are_per_user_logon_not_system_service()
|
|
{
|
|
var args = HostLogonAutostart.CreateTaskArgs(@"C:\Tools\Explorer.Host.exe");
|
|
Assert.Contains("/SC", args);
|
|
Assert.Contains("ONLOGON", args);
|
|
Assert.Contains("/RL", args);
|
|
Assert.Contains("LIMITED", args);
|
|
Assert.Contains(HostLogonAutostart.TaskName, args);
|
|
Assert.DoesNotContain("ONSTART", args);
|
|
Assert.DoesNotContain("/RU", args);
|
|
}
|
|
}
|