2021-01-07 17:31:22 +01:00
|
|
|
{ bwrap-helper, osu-lazer, writeShellScriptBin }:
|
2021-02-28 13:27:47 +01:00
|
|
|
writeShellScriptBin "osu-lazer-sandbox" ''
|
2021-01-10 21:39:04 +01:00
|
|
|
state_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/osu"
|
|
|
|
|
2021-01-10 21:39:27 +01:00
|
|
|
mkdir -p "$state_dir"
|
2021-01-07 17:31:22 +01:00
|
|
|
${bwrap-helper}/bin/bwrap-helper \
|
|
|
|
--audio \
|
|
|
|
--gui \
|
|
|
|
--network \
|
|
|
|
--passwd \
|
|
|
|
--x11 \
|
2021-01-10 21:39:04 +01:00
|
|
|
--bind "$state_dir" "$state_dir" \
|
2021-01-07 17:31:22 +01:00
|
|
|
${osu-lazer}/bin/osu!
|
|
|
|
''
|