11 lines
313 B
Bash
Executable file
11 lines
313 B
Bash
Executable file
#!/bin/sh
|
|
# Wrapper for Jellyfin Media Player to auto start/stop jellyfin-rpc
|
|
|
|
if [ ! -f "$HOME/.local/bin/jellyfin-rpc" ]; then
|
|
echo "Please ensure jellyfin-rpc is installed to ~/.local/bin/ and executable"
|
|
fi
|
|
|
|
$HOME/.local/bin/jellyfin-rpc &
|
|
/usr/bin/jellyfinmediaplayer
|
|
kill -9 $(pgrep -f jellyfin-rpc)
|
|
exit
|