From b0aff891661dfa2f438a7264607a4e6e9caef026 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Thu, 12 Sep 2024 20:53:33 +0900 Subject: app: handle launch method in New function Signed-off-by: Ophestra Umiker --- flag.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'flag.go') diff --git a/flag.go b/flag.go index 8fbdc6b1..aa67908a 100644 --- a/flag.go +++ b/flag.go @@ -2,8 +2,6 @@ package main import ( "flag" - - "git.ophivana.moe/cat/fortify/internal/app" ) var ( @@ -38,9 +36,6 @@ func init() { flag.BoolVar(&mustDBus, "dbus", false, "Proxy D-Bus connection") flag.BoolVar(&mustPulse, "pulse", false, "Share PulseAudio socket and cookie") - flag.BoolVar(&app.LaunchOptions[app.LaunchMethodSudo], "sudo", false, "Use 'sudo' to switch user") - flag.BoolVar(&app.LaunchOptions[app.LaunchMethodMachineCtl], "machinectl", true, "Use 'machinectl' to switch user") - flag.BoolVar(&flagVerbose, "v", false, "Verbose output") flag.BoolVar(&printVersion, "V", false, "Print version") } -- cgit v1.3.1