holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.72k stars 117 forks source link

Home directory #441

Open upintheairsheep opened 2 years ago

upintheairsheep commented 2 years ago

Please change the home directory to /private/var/mobile/Containers/Data/Application/60CD8846-C866-41CA-929 F-06D7C03F9F05/Documents instead of /private/var/mobile/Containers/Data/Application/60CD8846-C866-41CA-929 F-06D7C03F9F05/ as otherwise it gives error message.

PermissionError: [Errno 1] Operation not permit ted: '/private/var/mobile/Containers/Data/Appli cation/60CD8846-C866-41CA-929F-06D7C03F9F05/.tu beup'

PermissionError: [Errno 1] Operation not permit ted: './.instaup'

PermissionError: [Errno 1] Operation not permit ted: './.tikup'

holzschu commented 2 years ago

Hi, that is a recurring issue: users cannot write in $HOME, only in $HOME/Documents. Hence a-shell uses a bunch of environment variables to set the position if configuration files in a writeable directory. But changing the value of $HOME creates a lot of other issues because some iOS functions use the environment variable (it can even result in a non-running app).

You can try changing it before you run the script (and change it back at the end of the script), or check if there is an environment variable that allows you to specify the position of the configuration files (.tubeup, .instaup and `.tikup).