Skip to content

Commit

Permalink
Launcher now properly runs launcher.HostsEditor even if running as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
luskaner committed Jun 3, 2024
1 parent 16dd523 commit f2edc43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions launcher/internal/executor/hostsWriter.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package executor

import (
"path/filepath"
"shared/executor"
)

Expand All @@ -18,7 +17,7 @@ func run(admin bool, ip string, add bool) bool {
}
args := []string{ipFlag + ip, addFlag + boolStr}
if admin {
return executor.RunCustomExecutable(filepath.Join(".", processName), args...)
return executor.RunCustomExecutable("./"+processName, args...)
}
return ElevateCustomExecutable(processName, args...)
}
Expand Down

0 comments on commit f2edc43

Please sign in to comment.