Coder Social home page Coder Social logo

Comments (6)

marzzzello avatar marzzzello commented on August 26, 2024

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.

rucker avatar rucker commented on August 26, 2024

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:

  1. Hard-code the path to mpv as shown in the OP above.
  2. 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.

marzzzello avatar marzzzello commented on August 26, 2024

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.

SemperPeritus avatar SemperPeritus commented on August 26, 2024

The same problem. My workaround here: TheAMM#61

from mpv_thumbnail_script.

rucker avatar rucker commented on August 26, 2024

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.

rucker avatar rucker commented on August 26, 2024

@marzzzello @SemperPeritus Please have a look at #39, which I think will resolve this.

from mpv_thumbnail_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.