Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Sep 17, 2024
1 parent 5d4613b commit cef29ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions qpep-tray/common/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package common
import (
"context"
"fmt"
"github.com/Project-Faster/qpep/qpep-tray/notify"
"github.com/Project-Faster/qpep/shared/configuration"
"github.com/Project-Faster/qpep/shared/logger"
"github.com/Project-Faster/qpep/qpep-tray/notify"
"os"
"time"

Expand All @@ -22,7 +22,7 @@ func openConfigurationWithOSEditor() {
}

func openLogsFolder() {
_, _, _, logsPath := shared.GetConfigurationPaths()
_, _, _, logsPath := configuration.GetConfigurationPaths()

if err := open.Run(logsPath); err != nil {
notify.ErrorMsg("Editor configuration failed with error: %v", err)
Expand Down
13 changes: 4 additions & 9 deletions qpep-tray/common/impl_darwin.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package common

import (
"github.com/Project-Faster/qpep/shared/logger"
"github.com/Project-Faster/qpep/shared/configuration"
"github.com/Project-Faster/qpep/qpep-tray/icons"
"github.com/Project-Faster/qpep/qpep-tray/notify"
"github.com/Project-Faster/qpep/shared/configuration"
"os/exec"
"path/filepath"
)
Expand All @@ -19,8 +18,8 @@ func getServiceCommand(start, client bool) *exec.Cmd {
exeFile, _ := filepath.Abs(filepath.Join(ExeDir, EXENAME))

var serviceFlag = "start"
var clientFlag = "--client"
var verboseFlag = "--verbose"
var clientFlag = "-client"
var verboseFlag = "-verbose"
if !start {
serviceFlag = "stop"
}
Expand All @@ -31,16 +30,12 @@ func getServiceCommand(start, client bool) *exec.Cmd {
verboseFlag = ""
}

cmd := exec.Command(exeFile, clientFlag,
"--service", serviceFlag,
"-Dlistenaddress", shared.QPepConfig.ListenHost,
verboseFlag)
cmd := exec.Command(exeFile, "-service", serviceFlag, clientFlag, verboseFlag)
if cmd == nil {
notify.ErrorMsg("Could not create client command")
return nil
}
cmd.Dir, _ = filepath.Abs(ExeDir)
logger.Info(cmd.String())
return cmd
}

Expand Down
1 change: 1 addition & 0 deletions workers/gateway/gateway_interface_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/Project-Faster/qpep/shared/configuration"
"github.com/Project-Faster/qpep/shared/logger"
"github.com/jackpal/gateway"
"net"
"net/url"
"regexp"
"strconv"
Expand Down

0 comments on commit cef29ef

Please sign in to comment.