osu-lazer-container: Respect XDG_DATA_HOME

This commit is contained in:
Simon Bruder 2021-01-10 21:39:04 +01:00
parent 73f4c7080b
commit 8a4710684d
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,11 +1,13 @@
{ bwrap-helper, osu-lazer, writeShellScriptBin }: { bwrap-helper, osu-lazer, writeShellScriptBin }:
writeShellScriptBin "osu-lazer-container" '' writeShellScriptBin "osu-lazer-container" ''
state_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/osu"
${bwrap-helper}/bin/bwrap-helper \ ${bwrap-helper}/bin/bwrap-helper \
--audio \ --audio \
--gui \ --gui \
--network \ --network \
--passwd \ --passwd \
--x11 \ --x11 \
--bind $HOME/.local/share/osu $HOME/.local/share/osu \ --bind "$state_dir" "$state_dir" \
${osu-lazer}/bin/osu! ${osu-lazer}/bin/osu!
'' ''