@@ -36,7 +36,7 @@ func validateAndEscapePathForAppleScript(path string) string {
3636
3737// isLoginItem checks if the app is set to start at login.
3838func isLoginItem (ctx context.Context ) bool {
39- appPath , err := getAppPath ()
39+ appPath , err := appPath ()
4040 if err != nil {
4141 log .Printf ("Failed to get app path: %v" , err )
4242 return false
@@ -67,7 +67,7 @@ func isLoginItem(ctx context.Context) bool {
6767
6868// setLoginItem adds or removes the app from login items.
6969func setLoginItem (ctx context.Context , enable bool ) error {
70- appPath , err := getAppPath ()
70+ appPath , err := appPath ()
7171 if err != nil {
7272 return fmt .Errorf ("get app path: %w" , err )
7373 }
@@ -131,8 +131,8 @@ func isRunningFromAppBundle() bool {
131131 return strings .Contains (execPath , ".app/Contents/MacOS/" )
132132}
133133
134- // getAppPath returns the path to the application bundle.
135- func getAppPath () (string , error ) {
134+ // appPath returns the path to the application bundle.
135+ func appPath () (string , error ) {
136136 // Get the executable path
137137 execPath , err := os .Executable ()
138138 if err != nil {
0 commit comments