diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-15 20:05:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-15 20:05:52 +0200 |
commit | 63a953e2f02e4b06196743dca210d518eaedec7a (patch) | |
tree | 7c07a696343551c3600e885b8fcf5b5ee42bf4b0 /extra/gpu-screen-recorder.service | |
parent | 145377fce5445604f529ee0c5512b31a8dd86236 (diff) |
Update systemd file with restore portal session option (default to yes)
Diffstat (limited to 'extra/gpu-screen-recorder.service')
-rw-r--r-- | extra/gpu-screen-recorder.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/gpu-screen-recorder.service b/extra/gpu-screen-recorder.service index 68c8ab1..d4d9f3b 100644 --- a/extra/gpu-screen-recorder.service +++ b/extra/gpu-screen-recorder.service @@ -17,7 +17,8 @@ Environment=MAKEFOLDERS=no Environment=COLOR_RANGE=limited Environment=KEYINT=2 Environment=ENCODER=gpu -ExecStart=/bin/sh -c 'AUDIO="${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w $WINDOW -c $CONTAINER -q $QUALITY -k $CODEC -ac $AUDIO_CODEC -a "$AUDIO" -a "$SECONDARY_AUDIO_DEVICE" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE -keyint $KEYINT -encoder $ENCODER' +Environment=RESTORE_PORTAL_SESSION=yes +ExecStart=/bin/sh -c 'AUDIO="${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w "$WINDOW" -c "$CONTAINER" -q "$QUALITY" -k "$CODEC" -ac "$AUDIO_CODEC" -a "$AUDIO" -a "$SECONDARY_AUDIO_DEVICE" -f "$FRAMERATE" -r "$REPLAYDURATION" -o "$OUTPUTDIR" -mf "$MAKEFOLDERS" $ADDITIONAL_ARGS -cr "$COLOR_RANGE" -keyint "$KEYINT" -restore-portal-session "$RESTORE_PORTAL_SESSION" -encoder "$ENCODER"' KillSignal=SIGINT Restart=on-failure RestartSec=5s |