stewartadam / fwbackups

A feature-rich, user-friendly backup program [bugfixes only]
http://www.diffingo.com/oss/fwbackups/
GNU General Public License v2.0
86 stars 20 forks source link

Prevent flatpak-spawn debug messages from polluting stdout #28

Closed stewartadam closed 8 months ago

stewartadam commented 8 months ago

When editing crontab, if the user or system has set the G_DEBUG or G_DEBUG_MESSAGES environment variables, then flakpat-spawn injects its own output into the captured stdout of executed commands, breaking crontab parsing.

This PR removes G_DEBUG and G_DEBUG_MESSAGES from the cloned environment for subprocesses when executing in a flatpak environment to avoid this.