Bug 431365

Summary: "WINDOW DECORATIONS RELOADED" shouldn't be written to stdout
Product: [Applications] systemsettings Reporter: bailong104
Component: kcm_styleAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: a.giove, mail, pablo, wengxt
Priority: NOR    
Version: 5.20.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.21

Description bailong104 2021-01-09 19:00:11 UTC
SUMMARY

This is a bug of kde-gtk-config. When starting some gtk programs, there will be a "WINDOW DECORATIONS RELOADED" message mixing with the programs' output. This breaks many scripts like winetricks because it uses zenity.

STEPS TO REPRODUCE
1. run `/usr/bin/zenity --version 2>/dev/null`

OBSERVED RESULT

Output is
```
WINDOW DECORATIONS RELOADED
WINDOW DECORATIONS RELOADED
3.32.0
```

EXPECTED RESULT

Only `3.32.0`

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.20
KDE Frameworks Version: 20.12
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Mikhail Zolotukhin 2021-01-09 19:10:56 UTC
https://invent.kde.org/plasma/kde-gtk-config/-/blob/master/window-decorations-reload-module/reloader.c#L58

This line can be deleted. It was just for debugging purposes and just passed through the review.
Comment 2 Bug Janitor Service 2021-01-09 19:17:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/22
Comment 3 Aldo Giove 2021-02-03 08:22:13 UTC
Nice to know that the fix is ready.

But... while the fix will reach the distributions (I don't know if it will take days or weeks or months), is there any quick workaround to suppress this message? It prevents my YAD and ZENITY based programs from working.

Thanks
Aldo