fn drop_background_if_no_tray(cmd: &mut Command, tray_unavailable: bool)Expand description
Background mode without a tray icon is a resident process nobody can see
or quit. When the tray was requested but failed to start, take both
switches back out of the host’s environment, whether they came from the
launcher’s own env (the setting) or from --background. Must run after
every .env/.envs that could set them: later Command env calls win.