Comments (4)
Completed in e9cee78
:D
from beautyxt.
Did some tests, passing file descriptors (and temp_dir which isn't used anywhere just relevant) only works without isolatedProcess.
So I don't think doing this would be practical as it would require rewriting most of the Typst integration to not use file descriptors and instead accept/return Strings and Vec (which is what the Rust library bits for plain text and markdown do). Also handle writing to the files from the Kotlin side instead since the Rust side only accepts and returns stuff and can't write it itself as passing file descriptors doesn't work.
If anyone knows of some other way or thing I am missing, please comment here.
I'm looking into the solution I proposed...
from beautyxt.
Never mind, it is possible but that doesn't mean it should be implemented. It would mean that all the files in a folder would have to be loaded into memory twice instead of the current way of loading files as it needs them.
Would be cool if isolated process services could be granted permissions so I could just do that but oh well...
from beautyxt.
Wait never mind (again lol), it seems it can access file descriptors if I pass a ParcelFileDescriptor and detatch it in the isolatedProcess service before passing the file descriptor to Rust.
from beautyxt.
Related Issues (20)
- Compile Rust library with stack allocation MTE
- Check that file is valid UTF-8 upon opening
- Typst doesn't show math HOT 2
- Save Typst project exports as project folder name instead of main
- Use isolatedProcess service for calling bindings to Rust HOT 1
- Use an isolatedProcess service for calling Rust functions from FileViewModel HOT 1
- Add rich text option HOT 3
- Crash upon file opening on Android 10 with BeauTyXT 0.19.1 HOT 12
- Disallow memory W^X for the Rust libraries HOT 1
- Cutoff in license screen HOT 2
- The app keeps crashing HOT 19
- crash when i edit typst HOT 1
- App crashes on opening large .txt file HOT 4
- Chinese fonts cannot be displayed in typst HOT 6
- App crashes upon opening a Typst project folder HOT 19
- Clarify build instructions in the readme HOT 3
- Backspace to delete letters is misbehaving HOT 4
- Insufficient contrast for links in the Markdown preview in dark mode HOT 3
- Add syntax highlighting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beautyxt.