Skip to content
Snippets Groups Projects
Commit 568843d6 authored by Anon's avatar Anon
Browse files

AppDetailFragment: Fix file paths.

parent 0374d7a1
Branches
Tags
No related merge requests found
...@@ -117,7 +117,7 @@ class AppDetailFragment : Fragment() { ...@@ -117,7 +117,7 @@ class AppDetailFragment : Fragment() {
targetFile.createNewFile() targetFile.createNewFile()
Log.d(TAG, "Extracting ${entry.name} to ${targetFile.absolutePath}") Log.d(TAG, "Extracting ${entry.name} to ${targetFile.absolutePath}")
tarStream.copyTo(targetFile.outputStream()) tarStream.copyTo(targetFile.outputStream())
appFiles.add(TransferJob(targetFile.toUri(), "apps/${entry.name}")) appFiles.add(TransferJob(targetFile.toUri(), "/apps/${entry.name}"))
} }
val launcher = createLauncher(app.slug, cacheDir) val launcher = createLauncher(app.slug, cacheDir)
...@@ -157,12 +157,12 @@ class AppDetailFragment : Fragment() { ...@@ -157,12 +157,12 @@ class AppDetailFragment : Fragment() {
val src = """ val src = """
# Launcher script for $slug # Launcher script for $slug
import os import os
os.exec("apps/$slug/__init__.py") os.exec("/apps/$slug/__init__.py")
""".trimIndent() """.trimIndent()
file.writeText(src) file.writeText(src)
return TransferJob(file.toUri(), fileName) return TransferJob(file.toUri(), "/$fileName")
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment