Limit the command line to 1024 characters when used as the title
... and add a "shell-command" flag for debugging.
Backport yet-to-be-released patches from upstream to avoid translation
conflicts.
Based on code written by Bill Nottingham.
https://bugzilla.redhat.com/show_bug.cgi?id=1789142