shim: get rid of insane launch condition
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
@@ -57,8 +57,8 @@ func (a *app) commandBuilderMachineCtl(shimEnv string) (args []string) {
|
||||
}
|
||||
}
|
||||
|
||||
// both license and version flags need to be set to activate shim path
|
||||
innerCommand.WriteString("exec " + a.seal.sys.executable + " -V -license")
|
||||
// launch fortify as shim
|
||||
innerCommand.WriteString("exec " + a.seal.sys.executable + " shim")
|
||||
|
||||
// append inner command
|
||||
args = append(args, innerCommand.String())
|
||||
|
||||
@@ -26,7 +26,7 @@ func (a *app) commandBuilderSudo(shimEnv string) (args []string) {
|
||||
args = append(args, shimEnv)
|
||||
|
||||
// -- $@
|
||||
args = append(args, "--", a.seal.sys.executable, "-V", "--license") // magic for shim.Try()
|
||||
args = append(args, "--", a.seal.sys.executable, "shim")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user