diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-13 12:09:38 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-13 12:09:38 +0900 |
| commit | b47094191145277319b81feb6d1a7f0e3e20b906 (patch) | |
| tree | 55770baea2b1166e1d8c0ad9a730318c6fee3d8a /internal/app | |
| parent | e4536b87ad5bc23096eab00f17ac55b7aad23996 (diff) | |
shim: get rid of insane launch condition
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app')
| -rw-r--r-- | internal/app/launch.machinectl.go | 4 | ||||
| -rw-r--r-- | internal/app/launch.sudo.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/launch.machinectl.go b/internal/app/launch.machinectl.go index 59efd553..9fb9ea0b 100644 --- a/internal/app/launch.machinectl.go +++ b/internal/app/launch.machinectl.go @@ -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()) diff --git a/internal/app/launch.sudo.go b/internal/app/launch.sudo.go index 777cb2a7..3e364ace 100644 --- a/internal/app/launch.sudo.go +++ b/internal/app/launch.sudo.go @@ -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 } |
