File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -25,26 +25,27 @@ type Systray struct {
25
25
// Restart restarts the program
26
26
// it works by finding the executable path and launching it before quitting
27
27
func (s * Systray ) Restart () {
28
+
29
+ fmt .Println (s .path )
30
+ fmt .Println (osext .Executable ())
28
31
if s .path == "" {
29
32
var err error
30
33
s .path , err = osext .Executable ()
31
34
if err != nil {
32
35
fmt .Printf ("Error getting exe path using osext lib. err: %v\n " , err )
33
36
}
34
-
35
- // Trim newlines (needed on osx)
36
- s .path = strings .Trim (s .path , "\n " )
37
37
}
38
38
39
+ // Trim newlines (needed on osx)
40
+ s .path = strings .Trim (s .path , "\n " )
41
+
39
42
// Build args
40
43
args := []string {"-ls" , fmt .Sprintf ("--hibernate=%v" , s .Hibernate )}
41
44
42
45
if s .AdditionalConfig != "" {
43
46
args = append (args , fmt .Sprintf ("--additional-config=%s" , s .AdditionalConfig ))
44
47
}
45
48
46
- fmt .Println (s .path , args )
47
-
48
49
// Launch executable
49
50
cmd := exec .Command (s .path , args ... )
50
51
err := cmd .Start ()
You can’t perform that action at this time.
0 commit comments