Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic streamer mode detection does not work on macOS #5259

Closed
4 tasks done
MrPandir opened this issue Mar 23, 2024 · 4 comments · Fixed by #5260
Closed
4 tasks done

Automatic streamer mode detection does not work on macOS #5259

MrPandir opened this issue Mar 23, 2024 · 4 comments · Fixed by #5260
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user issue-report An issue reported by a user. OS: Mac

Comments

@MrPandir
Copy link

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

Today I started receiving notifications in the chatterino chat:
Streamer Mode is set to Automatic, but pgrep is missing. Install it to fix the issue or set Streamer Mode to Enabled or Disabled in the Settings.
But I have pgrep and it is available in $PATH at /usr/bin/pgrep.
I also downloaded OBS to check if this function works at all, and it turns out it doesn't work.
I downloaded the previous version 2.4.4 and the function still doesn't work there either.
pgrep works correctly for me:

user@MacBook-Air ~ % pgrep obs
80118

Screenshots

No response

OS and Chatterino Version

Chatterino 2.4.5 (commit 05a72d3) built with Qt 6.5.0 Running on macOS 14.2, kernel: 23.2.0

@MrPandir MrPandir added the issue-report An issue reported by a user. label Mar 23, 2024
@KleberPF
Copy link
Contributor

What's the return of pgrep -x obs?

@Nerixyz
Copy link
Contributor

Nerixyz commented Mar 23, 2024

You could also try pgrep -x "obs|Twitch Studio|Streamlabs Desktop" and time pgrep -x "obs|Twitch Studio|Streamlabs Desktop".

My guess is that it's timing out. We might want to include the exit status of QProcess in the warning. I think if the command timed out, we shouldn't output an error.

@MrPandir
Copy link
Author

No result:

user@MacBook-Air ~ % time pgrep -x "obs|Twitch Studio|Streamlabs Desktop"
pgrep -x "obs|Twitch Studio|Streamlabs Desktop"  0.00s user 0.00s system 25% cpu 0.032 total

However, if used in upper case it works:

user@MacBook-Air ~ % time pgrep -x "OBS|Twitch Studio|Streamlabs Desktop"
88726
pgrep -x "OBS|Twitch Studio|Streamlabs Desktop"  0.00s user 0.01s system 31% cpu 0.030 total

@Mm2PL Mm2PL added bug Something isn't working as intended, or works in a confusing/unintuitive way for the user OS: Mac issue-report An issue reported by a user. and removed issue-report An issue reported by a user. labels Mar 23, 2024
@pajlada
Copy link
Member

pajlada commented Mar 24, 2024

This should be fixed with the latest nightly version, available to download from github releases in about 30 minutes from this comment @MrPandir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user issue-report An issue reported by a user. OS: Mac
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants