use lib/log_to_file helper to record log instead of relying on the desktop file to redirect all output