Skip to content

Commit 5c7750c

Browse files
authored
Merge pull request #23 from numary/fix/ui-open
Fix ui open on linux server distributions
2 parents 2635c32 + 3265f68 commit 5c7750c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cmd/ui.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package cmd
33
import (
44
"embed"
55
"fmt"
6-
"log"
76
"net/http"
87
"os/exec"
98
"regexp"
@@ -15,7 +14,7 @@ import (
1514
//go:embed control
1615
var uipath embed.FS
1716

18-
func openuri(uri string) {
17+
func openuri(uri string) bool {
1918
var err error
2019

2120
switch runtime.GOOS {
@@ -29,9 +28,7 @@ func openuri(uri string) {
2928
err = fmt.Errorf("unsupported platform, open manually: %s", uri)
3029
}
3130

32-
if err != nil {
33-
log.Fatal(err)
34-
}
31+
return err != nil
3532
}
3633

3734
var UICmd = &cobra.Command{

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func Init() {
2323
viper.SetDefault("storage.sqlite.db_name", "numary")
2424
viper.SetDefault("storage.postgres.conn_string", "postgresql://localhost/postgres")
2525
viper.SetDefault("server.http.bind_address", "localhost:3068")
26-
viper.SetDefault("ledgers", []string{"quickstart"})
26+
viper.SetDefault("ledgers", []interface{}{"quickstart"})
2727

2828
viper.SetConfigName("numary")
2929
viper.SetConfigType("yaml")

0 commit comments

Comments
 (0)