How to Stop OneDrive From Repeatedly Stealing Focus on macOS
Question details
The user needs to prevent the OneDrive application from continuously taking screen focus away from other active applications.

- Product
- Microsoft OneDrive
- Device & OS
- macOS Ventura
- Scenario
- Attempting to use other applications on a Mac while OneDrive runs or attempts to update in the background.
- Observed behavior
- OneDrive repeatedly starts and stops in an endless loop, taking focus away from other apps and resisting normal termination methods.
Ensure you have saved your work in all other active applications, as you will need to restart your Mac and potentially reinstall your cloud storage software.
Force Quit via Terminal and Reinstall OneDrive
Use macOS Terminal to aggressively terminate all looping OneDrive processes, followed by a Safe Mode boot to cleanly reinstall the application.
When an automatic update fails, OneDrive can get stuck in a crash loop. Because it constantly jumps to the foreground, standard force-quit methods may not work. Using the Terminal ensures all background processes associated with the app are completely killed so you can safely remove it.
Press Cmd + Space to open Spotlight search, type 'Terminal', and press Enter to launch the Terminal application.
In the Terminal window, carefully type `pkill -9 OneDrive` and press Enter. This will instantly terminate all running OneDrive tasks. You may need to type this quickly between focus interruptions.
Click the Apple menu and select Restart. As your Mac restarts, press and hold the Shift key until you see the login window to boot into Safe Mode.
Open Finder, navigate to your Applications folder, locate OneDrive, and drag it to the Trash. Empty the Trash to completely remove the corrupted installation.
Restart your Mac normally, visit the official Microsoft OneDrive website, download the latest macOS installer, and follow the on-screen instructions to reinstall.

Switch to WPS Office for a Stable Mac Experience
If Microsoft Office background services like OneDrive are causing disruptive performance issues on your Mac, consider switching to WPS Office. It provides a lightweight, highly compatible workspace with seamless integrated cloud storage that won't overwhelm your system.
- 1. Download the Installer: Visit the official WPS Office website and download the free version designed specifically for macOS.
- 2. Install the Application: Open the downloaded DMG file and drag the WPS Office icon into your Applications folder.
- 3. Sign In and Sync: Launch WPS Office, sign in to activate your free WPS Cloud space, and start working without unexpected interruptions.

Frequently Asked Questions
Why does OneDrive keep stealing focus on my Mac?
This behavior is typically caused by a failed or corrupted automatic background update. The application gets stuck in a loop where it repeatedly tries to launch, crashes, and restarts, pulling your screen focus each time.
What does the 'pkill -9' command actually do?
The `pkill` command is used in macOS Terminal to terminate background tasks by name. The `-9` modifier sends a non-blockable 'kill' signal, forcing the operating system to shut down the specified app immediately.
Is booting into Safe Mode required to uninstall OneDrive?
While not strictly required under normal circumstances, Safe Mode is highly recommended when dealing with crash loops. It stops unnecessary background services from loading, ensuring that OneDrive doesn't restart while you are trying to delete it from the Applications folder.




