obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.19k stars 7.71k forks source link

Unable to exit OBS Studio via system tray, if window was never visible #10933

Open PancakeTAS opened 3 days ago

PancakeTAS commented 3 days ago

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/BVf81EABokxXeG4w

OBS Studio Crash Log URL

No response

Expected Behavior

When launching OBS directly into systray, opening the tray menu and selecting "Exit" should exit OBS.

Current Behavior

Instead, nothing at all happened.

Steps to Reproduce

  1. Run with --minimize-to-tray or check the option in the UI
  2. Open the tray menu and select Exit

Anything else we should know?

I was able to verify this behavior in Safe Mode as well (so none of my plugins are causing this issue). If the window was ever visible (even if hidden again) the button will work as intended.

(window manager is i3)

mihawk90 commented 3 days ago

Can't reproduce this on Plasma 5

Actually, after some further tests... I renamed ~/.config/obs-studio to get a clean config. On first launch when the auto-config wizard comes up, it works. But on subsequent launches with no window coming up, it doesn't.

My initial test was with Twitch login which makes the Twitch panels pop out as standalone windows, and as noted that works too.

Selecting Show from the tray menu and then minimizing it again also makes it work.

So it seems to be connected with a window being created.