---
title: enableRelaunchOnLogin()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsapplication/enablerelaunchonlogin()
---

# enableRelaunchOnLogin()

Enables relaunching the app on login.

## Declaration

```swift
func enableRelaunchOnLogin()
```

## Discussion

Discussion Invoking this method will cause the app to relaunch when the user next logs in to their account. This methods is thread safe.

## See Also

### Managing relaunch on login

- [disableRelaunchOnLogin()](appkit/nsapplication/disablerelaunchonlogin().md)
