Comments (6)
How did you modify the PATH variable?
It looks like the CLI uses a different environment than the UI.
https://www.bounga.org/tips/2020/04/07/instructs-mac-os-gui-apps-about-path-environment-variable/
Have you tried setting the PATH in /etc/launchd
?
EDIT: In the comments someone says that it no longer works :/
from mpv_thumbnail_script.
I am setting my PATH
in my .bashrc
. From what I've read, exposing user env vars to GUI applications on macOS is a nontrivial problem with a lot of potential solutions (depending on the version -- as you mentioned, launchd
used to be one possibility but this is no longer the case).
At any rate, unless you want this thumbnailer script to go looking in known locations like Homebrew's bin dir that aren't on the default PATH
(I understand if you don't), it seems to me that this is more of a system configuration issue.
Here are some possible solutions for anyone else facing this situation:
- Hard-code the path to
mpv
as shown in the OP above. - Various possibilities listed here (warning, this is an old question with old answers so YMMV).
Unless there are other possibilities I'm not thinking of, you can probably close this issue.
from mpv_thumbnail_script.
So none of the possibilities in [2.] work? launchctl setenv PATH $PATH
looked promising.
I could also add an option for setting the path to mpv.
from mpv_thumbnail_script.
The same problem. My workaround here: TheAMM#61
from mpv_thumbnail_script.
So none of the possibilities in [2.] work?
launchctl setenv PATH $PATH
looked promising. I could also add an option for setting the path to mpv.
I haven't tried everything in that SO thread, but launchctl setenv PATH $PATH
unfortunately did not do the trick. I verified that the path is correct via launchctl getenv PATH
but it had no apparent effect -- launching MPV after setting this resulted in the thumbnailer job failing as before. I agree it looked promising though!
from mpv_thumbnail_script.
@marzzzello @SemperPeritus Please have a look at #39, which I think will resolve this.
from mpv_thumbnail_script.
Related Issues (20)
- Thumbnails are too small on HiDPI Screens HOT 3
- Where is the directory that needs to be cleaned out every so often located? HOT 1
- Glitched drop shadow HOT 1
- Thumbnails for wrong file may be used if files from different URLs are played
- `mpv av://v4l2:/dev/video0`: `ERROR: Unable to handle request: Unsupported url scheme: "av" (urllib)` HOT 2
- No OSC on new mpv-git HOT 2
- Script relies on `shared-script-properties` deprecated in mpv release 0.37.0 HOT 1
- Most recent version causes MPV.net to lose focus
- webms and gifs don't work
- Option to clear thumbnails cache
- Thumbnail previews broken in latest version of mpv HOT 2
- Specify $HOME in mpv_thumbnail_script.conf HOT 1
- Feature Request: Store thumbnails in the same folder as the video
- Thumbnailing command failed & Command 'escape-ass' not found HOT 1
- Does not seem to work. HOT 2
- Added it. Didn't work so wanted to remove it. Removing it make it so the seek bar never appear again. HOT 1
- command prompt looping when script is loaded with mp.command HOT 1
- Option to hide thumbnail loading progress indicator
- how to load script only for online streams?
- how to hide chapter osd on next/prev?
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 mpv_thumbnail_script.