mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
XENIA: sandboxing prefix
This commit is contained in:
parent
188dee578c
commit
84e56f2345
|
@ -896,7 +896,18 @@ prepare_component() {
|
||||||
log i "Prepearing Xenia"
|
log i "Prepearing Xenia"
|
||||||
log i "----------------------"
|
log i "----------------------"
|
||||||
|
|
||||||
rm -rf "/var/data/xenia-canary-pfx"
|
local xenia_prefix="/var/data/xenia-canary-pfx"
|
||||||
|
create_dir -d "$xenia_prefix"
|
||||||
|
|
||||||
|
# sandboxing prefix to avoid writing on real user home folder
|
||||||
|
# TODO: multi user needs to carew about this as we're using the linux username
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Desktop" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Desktop"
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Documents" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Documents"
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Downloads" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Downloads"
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Music" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Music"
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Pictures" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Pictures"
|
||||||
|
unlink "$xenia_prefix/drive_c/users/$(whoami)/Videos" && create_dir "$xenia_prefix/drive_c/users/$(whoami)/Videos"
|
||||||
|
|
||||||
# TODO: fill this
|
# TODO: fill this
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue