Bug 431365 - "WINDOW DECORATIONS RELOADED" shouldn't be written to stdout
Summary: "WINDOW DECORATIONS RELOADED" shouldn't be written to stdout
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 5.20.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-09 19:00 UTC by bailong104
Modified: 2021-02-03 08:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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