Files
SolarFM/user_config/bin/solarfm
T

30 lines
625 B
Bash
Raw Normal View History

2022-07-06 23:19:41 -05:00
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
call_path=`pwd`
cd "${call_path}"
2022-07-06 23:19:41 -05:00
echo "Working Dir: " $(pwd)
2023-11-12 00:49:16 -06:00
files=()
for f in "$@"; do
target=$(readlink -f "${f}")
i="${#files[@]}"
size=$(($i + 1))
files[$size]="${target}"
done
2024-07-26 19:52:00 -05:00
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
export GOBJECT_DEBUG=instance-count
export GSK_RENDERER=cairo
python /opt/solarfm.zip "$@"
2022-07-06 23:19:41 -05:00
}
main "$@";