Commit 581b958c authored by Markus Seidl's avatar Markus Seidl

GO has a command line bug, fixed it.

parent 42b66170
module rgifbot
require ( v1.0.5 // indirect v1.0.5 v0.8.0 v1.0.5 // indirect v2.0.0-20181213002246-6451db130825
......@@ -9,9 +9,10 @@ import (
func PlayAndWait(config config.BotConfig, file string) {
var args []string
app := "/usr/bin/fbi"
args = append(args, "-t", "5", "--once", "-d", "/dev/fb0", "--noverbose", "--autozoom",
app := "./scripts/"
args = append(args, file, file, "test")
//args = append(args, "-t", "5", "--once", "-d", "/dev/fb0", "--noverbose", "--autozoom",
// file, "</dev/tty1", ">/dev/tty1")
cmd := &exec.Cmd{
Path: app,
#!/bin/bash -xe
/usr/bin/fbi -t 5 --once -d /dev/fb0 --noverbose --autozoom $1 </dev/tty1 >/dev/tty1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment