Commit 3f78af3
Linux port: override getAppHomePath so relative File paths resolve to a writable dir
new File("tmpaudio.wav").getAbsolutePath() resolved to /null/tmpaudio.wav, so a
recorded clip came back as file:///null/tmpaudio.wav and could not be played. The
base getAppHomePath() builds listFilesystemRoots()[0] + getProperty("AppName",
packageName), which on Linux is "/" + the app name -- unwritable -- and "/null/"
when no AppName/packageName is set. Override it to the per-user storage directory
(the same writable location Storage and capturePhoto already use), which fixes every
relative File path in the port, not just the audio capture round-trip.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3bab176 commit 3f78af3
1 file changed
Lines changed: 23 additions & 0 deletions
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2291 | 2291 | | |
2292 | 2292 | | |
2293 | 2293 | | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2294 | 2317 | | |
2295 | 2318 | | |
2296 | 2319 | | |
| |||
0 commit comments