Skip to content

launch-client: Minor quality-of-life improvements

Simon McVittie requested to merge wip/smcv/qol into master
  • launch-client: Run an interactive shell if no command is specified

    This matches the behaviour of ssh, pkexec and similar tools.

  • launch-client: Add -c/--shell-command as a shortcut for sh -c

    This makes it a little bit easier to run shell logic like

      s-r-launch-client ... -c 'if foo; then bar; fi'

    or

      s-r-launch-client ... -c 'kill -INT $MAINPID'

    for which a shell interpreter is required.

  • launch-client: Add --inherit-env[-matching] options

    This provides a way to undo previous or automatically-set environment variables.

  • launch-client: Automatically pass through TERM if on a terminal

    This ensures that an interactive shell gets the right TERM set, even if Steam itself was not run from a terminal.

  • launch-client: Add --env-fd option

    I contributed this to flatpak-spawn in early 2021. It avoids the variables' values being visible in /proc/*/cmdline to other users' processes, and also avoids having a very long command-line if a lot of environment variables need to be propagated.

Edited by Simon McVittie

Merge request reports

Loading