-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: scripts to install or update uosc with a single line #691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't test on mac, but this is required for linux.
Is there no way in mpv to spawn an async subprocess that won't freeze the UI and listen to its stdout and exit events with callbacks? |
There is mp.command_native_async which I use in quality-menu. |
I completely missed that 😐. I guess we are not able to listen on stdin messages, and we get the whole thing at the end? Well, better than nothing. I'll add a self-updater in a separate commit if I manage to make it work right. I'll merge this now so hopefully someone tests it on mac, because I absolutely do not want to try virtualizing that again. |
I think it's possible to start a process directly from lua and then treat it's stdin and stdout like a file, but I never tried that myself. |
What do you mean by this? Make the process output into a file with |
|
Dunno why I always assume we don't have access to stuff like this in here. But I can't find any docs, or snippets on how to use it asynchronously without blocking the thread. |
I haven't tested the script for Linux & macOS. If anyone could, it'd be nice :) It should install current latest stable.
I also want to figure out if we can provide a
uosc/update
command that people can just run from their menu and update uosc in the background.