Skip to content

Commit ce06801

Browse files
committed
fix typo
1 parent aef6fbb commit ce06801

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cmd/go-uic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"regexp"
1111
"strings"
1212

13-
"github.com/kitech/qt.go.bak/miscutil"
13+
"github.com/kitech/qt.go/miscutil"
1414
"github.com/kitech/qt.go/toolutil"
1515
)
1616

qtrt/ffi_invoke.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ func init_ffi_invoke() {
196196
bcc, err := ioutil.ReadFile(fmt.Sprintf("/proc/%d/cmdline", os.Getpid()))
197197
ErrPrint(err)
198198
appdir := string(bcc[:bytes.IndexByte(bcc, 0)])
199+
sepos := strings.Index(appdir, ":") // for service process name
200+
if sepos != -1 {
201+
appdir = appdir[:sepos]
202+
}
203+
199204
for i := 0; i < 9; i++ {
200205
d := fmt.Sprintf("/data/app/%s-%s/lib/%s/", appdir,
201206
IfElseStr(i == 0, "", fmt.Sprintf("%d", i)), archs[runtime.GOARCH])

0 commit comments

Comments
 (0)