steam: fix readonly boostrap.tar.xz
steam writes it with 444 permissions, which makes simple deletions fails, and steam will crash
This commit is contained in:
parent
ab91cd998f
commit
373cb5d41d
@ -55,6 +55,14 @@ let
|
|||||||
export STEAM_LD_LIBRARY_PATH="$STEAM_LD_LIBRARY_PATH''${STEAM_LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
export STEAM_LD_LIBRARY_PATH="$STEAM_LD_LIBRARY_PATH''${STEAM_LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# bootstrap.tar.xz has 444 permissions, which means that simple deletes fail
|
||||||
|
# and steam will not be able to start
|
||||||
|
fixBootstrap = ''
|
||||||
|
if [ -r $HOME/.local/share/Steam/bootstrap.tar.xz ]; then
|
||||||
|
chmod +w $HOME/.local/share/Steam/bootstrap.tar.xz
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
setupSh = writeScript "setup.sh" ''
|
setupSh = writeScript "setup.sh" ''
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
'';
|
'';
|
||||||
@ -264,6 +272,7 @@ in buildFHSUserEnv rec {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
${lib.optionalString (!nativeOnly) exportLDPath}
|
${lib.optionalString (!nativeOnly) exportLDPath}
|
||||||
|
${fixBootstrap}
|
||||||
exec steam "$@"
|
exec steam "$@"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -290,6 +299,7 @@ in buildFHSUserEnv rec {
|
|||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
${lib.optionalString (!nativeOnly) exportLDPath}
|
${lib.optionalString (!nativeOnly) exportLDPath}
|
||||||
|
${fixBootstrap}
|
||||||
exec -- "$run" "$@"
|
exec -- "$run" "$@"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user