Collection of tools useful for audio production
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
797B

  1. #!/bin/bash
  2. if [ -f /usr/bin/python3 ]; then
  3. PYTHON=/usr/bin/python3
  4. else
  5. PYTHON=python
  6. fi
  7. INSTALL_PREFIX="X-PREFIX-X"
  8. if [ "$1"x == "--system-start-by-x11-startup"x ]; then
  9. # called via $STARTUP in 61-cadence-session-inject.sh
  10. $PYTHON $INSTALL_PREFIX/share/cadence/src/cadence_session_start.py --system-start &
  11. shift
  12. if [ "$1"x != ""x ]; then
  13. exec "$@"
  14. else
  15. exec x-session-manager
  16. fi
  17. elif [ "$1"x == "--maybe-system-start"x ]; then
  18. # called via autostart cadence-session-start.desktop
  19. # this will check if jack is already running before trying to restart things
  20. exec $PYTHON $INSTALL_PREFIX/share/cadence/src/cadence_session_start.py --system-start-desktop
  21. else
  22. # called by user
  23. exec $PYTHON $INSTALL_PREFIX/share/cadence/src/cadence_session_start.py "$@"
  24. fi