-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
30 lines (23 loc) · 517 Bytes
/
main.go
File metadata and controls
30 lines (23 loc) · 517 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//go:build !cli
package main
import (
"embed"
"github.com/downace/print-server/internal/gui"
"github.com/downace/print-server/internal/logging"
"os"
"runtime"
)
//go:embed all:frontend/dist
var assets embed.FS
const AppName = "Print Server"
func main() {
logging.InitLogs()
if runtime.GOOS == "linux" {
// https://github.com/wailsapp/wails/issues/2977
_ = os.Setenv("WEBKIT_DISABLE_DMABUF_RENDERER", "1")
}
err := gui.RunApp(AppName, assets)
if err != nil {
println("Error:", err.Error())
}
}