History

mac/app: add option to adjust Bundle PATH variable

App Bundles operate in their own shell environment that is different from the one in the terminal. the default PATH variable for all Bundles is /usr/bin:/bin:/usr/sbin:/sbin. because of that mpv can not find binaries installed by package manager that might be used in scripts for example. add an option to prepend paths to the Bundle PATH. we prepend to make the order fully configurable, opposed to appending where the default Bundle binaries would always take precedence.

der richter committed 2 years ago

Commit 61a09501 parent c0fb6d06 files · +41 −10Browse files

Showing the changes to DOCS (1 of 6 files). Show all

Unified · Split

DOCS/man/options.rst+15−0
@@ -6601,6 +6601,21 @@ them. · 6600 unmodified lines
6601 precedence over any other shortcuts, they are not propagated to the mpv core and they can't be6601 precedence over any other shortcuts, they are not propagated to the mpv core and they can't be
6602 used in config files like ``input.conf`` or script bindings.6602 used in config files like ``input.conf`` or script bindings.
6603 6603
6604``--macos-bundle-path=path1,path2,...``
6605 App Bundles operate in their own shell environment that is different from the one in the
6606 terminal. The default PATH variable for all Bundles is ``/usr/bin:/bin:/usr/sbin:/sbin``.
6607 Because of that mpv can not find binaries installed by package manager that might be used in
6608 scripts for example. This option prepends all given paths to the default Bundle PATH.
6609
6610 Default value in following order:
6611
6612 :/usr/local/bin: homebrew (Intel) install path
6613 :/usr/local/sbin: homebrew (Intel) install path
6614 :/opt/local/bin: MacPorts install path
6615 :/opt/local/sbin: MacPorts install path
6616 :/opt/homebrew/bin: homebrew (ARM) install path
6617 :/opt/homebrew/sbin: homebrew (ARM) install path
6618
6604``--android-surface-size=<WxH>``6619``--android-surface-size=<WxH>``
6605 Set dimensions of the rendering surface used by the Android gpu context.6620 Set dimensions of the rendering surface used by the Android gpu context.
6606 Needs to be set by the embedding application if the dimensions change during6621 Needs to be set by the embedding application if the dimensions change during

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t