Skip to content

Instantly share code, notes, and snippets.

@Delivator
Last active January 25, 2026 19:18
Show Gist options
  • Select an option

  • Save Delivator/d42885753f5801fbcce7c4541a945e43 to your computer and use it in GitHub Desktop.

Select an option

Save Delivator/d42885753f5801fbcce7c4541a945e43 to your computer and use it in GitHub Desktop.
Fixes "Logout canceled by obs" problem

Problem

OBS Replay Buffer, Streaming, or Recording blocks the system shutdown by sending a "Busy" signal to the Session Manager, resulting in the error: "Logout canceled by 'obs'".

Bildschirmfoto_20260125_122220

Solution

Hide the Session Manager from OBS so it can't veto the shutdown process.

  1. Copy the desktop file: cp /usr/share/applications/com.obsproject.Studio.desktop ~/.local/share/applications/
  2. Edit the Exec line: Open the file and prepend env SESSION_MANAGER="" to the command.
# Before:
Exec=obs --startreplaybuffer

# After:
Exec=env SESSION_MANAGER="" obs --startreplaybuffer
  1. Refresh: update-desktop-database ~/.local/share/applications/

Why it works

Emptying SESSION_MANAGER disconnects OBS from the logout protocol. The OS will now terminate OBS like a standard process without waiting for permission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment