File: runvst.sh

package info (click to toggle)
dssi-vst 0.8-2
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 268 kB
  • ctags: 520
  • sloc: cpp: 4,306; makefile: 59; sh: 8
file content (10 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
dll="$1"
test -f "$dll" || exit 1
if file "$dll" | grep -qi "MS-DOS executable" && strings "$dll" | grep -qi vst; then
    bn=`basename "$dll"`
    if Xdialog --default-no --yesno "WARNING: About to load DLL \"$bn\" as a JACK client.\n\nThis DLL looks like a VST plugin, but it's\nimpossible to tell what it will actually do.\nRunning it could damage your system.\n\nDo you want to go ahead and run it anyway?" 15 70; then
	exec setsid vsthost "$dll"
    fi
fi