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

GO has a command line bug, fixed it.

parent 42b66170
module rgifbot
require (
github.com/h2non/filetype v1.0.5 // indirect
github.com/h2non/filetype v1.0.5
github.com/pkg/errors v0.8.0
gopkg.in/h2non/filetype.v1 v1.0.5 // indirect
gopkg.in/tucnak/telebot.v2 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",
file)
app := "./scripts/fbi.sh"
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