mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
different shells need different args to load the expected profiles and configs, so we added a small heuristic to decide those args. also don't always load the profiles for a bash login shell and instead only use the standard shell without any args.
14 lines
308 B
Bash
Executable File
14 lines
308 B
Bash
Executable File
#!/bin/sh
|
|
export MPVBUNDLE="true"
|
|
|
|
# set the right args for the user specified standard shell
|
|
# to load the expected profiles and configs
|
|
args="-c"
|
|
case "$SHELL" in
|
|
*bash) args="-l $args";;
|
|
*zsh) args="-l -i $args";;
|
|
esac
|
|
|
|
cd "$(dirname "$0")"
|
|
$SHELL $args "./mpv --player-operation-mode=pseudo-gui"
|