1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

Add initial linux client

This commit is contained in:
Jesús Espino
2020-10-29 07:50:25 +01:00
parent b79cb62fc3
commit ce77568bd9
5 changed files with 48 additions and 0 deletions

33
linux/main.go Normal file
View File

@ -0,0 +1,33 @@
package main
import (
"log"
"os"
"os/exec"
"strconv"
"github.com/webview/webview"
)
func runOctoTasks() {
cmd := exec.Command("./bin/octoserver", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
cmd.Stdout = os.Stdout
err := cmd.Run()
if err != nil {
log.Fatal(err)
}
log.Printf("Just ran subprocess %d, exiting\n", cmd.Process.Pid)
}
func main() {
os.Chdir("../")
debug := true
w := webview.New(debug)
defer w.Destroy()
go runOctoTasks()
w.SetTitle("Octo Tasks")
w.SetSize(1024, 768, webview.HintNone)
w.Navigate("http://localhost:8000")
w.Run()
}