~rick-rickspencer3/+junk/rest-cam

« back to all changes in this revision

Viewing changes to server.go

  • Committer: Rick Spencer
  • Date: 2016-01-11 16:41:44 UTC
  • Revision ID: rick.spencer@canonical.com-20160111164144-474h9qjoyw1so04j
pointing go code directly to command instead of trying from binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                case "photo":
58
58
            //call the shoot binary
59
59
            appDir := os.Getenv("SNAP_APP_PATH")
60
 
            appPath := path.Join(appDir, "/usr/bin/shoot")
 
60
            appPath := path.Join(appDir, "/bin/shoot")
61
61
 
62
62
            cmd := exec.Command(appPath)
63
63
            cmd.Stdin = strings.NewReader("some input")