Hi Andreas and the Community,
I’ve tracked down a strange issue where Spotify immediately relaunches after I quit it while BetterTouchTool is running.
I eventually isolated the behaviour to the automatically generated <BTT Clipboard Manager> Conditional Activation Group.
Reproduction:
- Start BTT with
<BTT Clipboard Manager>enabled - Open Spotify
- Quit Spotify with
⌘Q - Spotify immediately relaunches
If I disable <BTT Clipboard Manager>, quit/relaunch BTT, and repeat the test, Spotify stays closed. The Clipboard Manager itself continues to work normally.
Deleting <BTT Clipboard Manager> does not solve it because BTT recreates the group on launch and the issue returns.
I also ruled out:
- my Spotify-specific BTT triggers/Touch Bar buttons
- the Touch Bar subsystem entirely
BetterTouchToolNowPlaying2killing that helper does not stop the relaunch- user AppleScripts containing Spotify/Now Playing references
BTT's log repeatedly shows this around the event:
SWIFT|is playing script {"OSAScriptErrorNumberKey":-609,"NSLocalizedDescription":"Spotify got an error: Connection is invalid."}
A LaunchServices trace also showed that Spotify exits normally and is then relaunched about 50 ms later, hidden, with BetterTouchTool itself as the parent/requesting process.
So it looks as though enabling the automatically generated Clipboard Manager conditional group somehow activates BTT's internal Spotify/"is playing" polling code.
Workaround: leaving <BTT Clipboard Manager> disabled completely fixes the issue, while Clipboard Manager itself still works.
Happy to provide the relevant BTT/LaunchServices logs if useful.
BTT version: 6.748
macOS version: Macbook Pro 2020 (Intel), Tahoe 26.6.2 (25G83)
Spotify version: 1.2.97.270