Commit 568843d6 authored by Anon's avatar Anon
Browse files

AppDetailFragment: Fix file paths.

parent 0374d7a1
......@@ -117,7 +117,7 @@ class AppDetailFragment : Fragment() {
targetFile.createNewFile()
Log.d(TAG, "Extracting ${entry.name} to ${targetFile.absolutePath}")
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)
......@@ -157,12 +157,12 @@ class AppDetailFragment : Fragment() {
val src = """
# Launcher script for $slug
import os
os.exec("apps/$slug/__init__.py")
os.exec("/apps/$slug/__init__.py")
""".trimIndent()
file.writeText(src)
return TransferJob(file.toUri(), fileName)
return TransferJob(file.toUri(), "/$fileName")
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment