Fix up Andromeda path manipulation to work with newer Andromedae that use multiple paths

This commit is contained in:
Danielle McLean 2019-03-11 13:20:16 +11:00
parent ae42c0119e
commit 4c348e7d17
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240
1 changed files with 5 additions and 3 deletions

View File

@ -10,8 +10,10 @@ shell() {
}
# Let's first grab the location where Andromeda is installed
pkg="$(shell pm path projekt.andromeda)"
pkg=${pkg#package:}
pkg=( "$(shell pm path projekt.andromeda)" )
pkg=( ${(f)pkg} )
pkg=( ${pkg#package:} )
# These steps could all be done as a one-liner but this way is easier to read.
# Quit Substratum if it's running.
shell am force-stop projekt.substratum
@ -28,5 +30,5 @@ print "Launching Andromeda..." >&2
shell <<EOF
appops set projekt.andromeda RUN_IN_BACKGROUND allow
appops set projekt.substratum RUN_IN_BACKGROUND allow
CLASSPATH=$pkg app_process /system/bin --nice-name=andromeda projekt.andromeda.Andromeda >/dev/null 2>&1 &
CLASSPATH=${(j.:.)pkg} app_process /system/bin --nice-name=andromeda projekt.andromeda.Andromeda >/dev/null 2>&1 &
EOF