Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions checks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,16 @@ def checkSafeMode(lines):
else:
return [LEVEL_WARNING, "Safe Mode Enabled",
"""You are running OBS in Safe Mode. Safe Mode disables third-party plugins and prevents scripts from running."""]


def checkSnapPackage(lines):
isDistroNix = search('Distribution:', lines)

if len(isDistroNix) <= 0:
return

distro = isDistroNix[0].split()
# Snap Package logs "Ubuntu Core" as distro, so it gets split halfway
if distro[2] == '"Ubuntu' and distro[3] == 'Core"':
return [LEVEL_WARNING, "Snap Package",
"You are using the Snap Package. This is a community-supported modified build of OBS Studio; please file issues on the <a href=\"https://github.com/snapcrafters/obs-studio/issues\">Snapcrafters GitHub</a>.<br><br>OBS may be unable to assist with issues arising out of the usage of this package and therefore recommends following our <a href=\"https://obsproject.com/download#linux\">Install Instructions</a>."]
3 changes: 2 additions & 1 deletion loganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def doAnalysis(url=None, filename=None):
checkPluginList(logLines),
checkVantage(logLines),
checkPortableMode(logLines),
checkSafeMode(logLines)
checkSafeMode(logLines),
checkSnapPackage(logLines)
])
messages.extend(checkVideoSettings(logLines))
m = parseScenes(logLines)
Expand Down