https://bugs.kde.org/show_bug.cgi?id=423076

            Bug ID: 423076
           Summary: "Notifications are disabled" output not redirected to
                    stdio or pipe
           Product: Snoretoast
           Version: unspecified
          Platform: Compiled Sources
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: vonr...@kde.org
          Reporter: jasong...@gmail.com
  Target Milestone: ---

SUMMARY

Disabled notification errors are not piped to pipeName or parent stdio, making
them unobservable by callers.

STEPS TO REPRODUCE
1. Disable notifications in Windows 10.
2. Call snoretoast with Node or some other caller using stdio and a pipe.

OBSERVED RESULT

"Notifications are disabled" and related output
(https://github.com/KDE/snoretoast/blob/d424758e83ad319c058edb74541e247a6de8e4fc/src/snoretoasts.cpp#L567)
is not redirected to stdio, stdeerr, or pipeName arg.

EXPECTED RESULT

"Notifications are disabled" and related output are redirect to stdio, stdeerr,
or pipeName arg so that callee can see result and act appropriately.


SOFTWARE/OS VERSIONS
Windows: 
macOS: Windows 10 Pro 1909
Linux/KDE Plasma: n/a (using snoretoast 0.7.0 directly)
(available in About System)
KDE Plasma Version: n/a (using snoretoast 0.7.0 directly)
KDE Frameworks Version: n/a (using snoretoast 0.7.0 directly)
Qt Version: n/a (using snoretoast 0.7.0 directly)

ADDITIONAL INFORMATION
It appears the use of AttachConsole
(https://github.com/KDE/snoretoast/blob/master/src/main.cpp#L314) is preventing
stdio from piping to parent. This means certain error output is never passed to
caller to process properly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to