Skip to content

Windows program monitor cannot detect long command line #161

Description

@jrmrjnck

process.start("powershell",
QStringList() << "-NoProfile"
<< "-NonInteractive"
<< "-Command"
<< "Get-CimInstance Win32_Process | Select CommandLine");

In trying to use Pause Conditions / Programs Monitor on windows, I found that Sane Break failed to detect a matching program string (e.g. I configure Sane Break to look for StringIWantToMatch from the running application c:\files\program.exe -some-other-options StringIWantToMatch). When I rearranged things to be c:\files\program.exe StringIWantToMatch -some-other-options then Sane Break was able to detect it and pause appropriately.

It seems like it's some wacky windows behavior where powershell truncates the output based on its implicit console size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions