Use flatpak-spawn to run streamlink when running as a flatpak (#3178)

Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
ilyazzz
2021-08-21 14:00:01 +03:00
committed by GitHub
parent d7fd08b1d6
commit a7ef7e6f7f
5 changed files with 40 additions and 18 deletions
+4 -2
View File
@@ -232,7 +232,9 @@ void Updates::installUpdates()
void Updates::checkForUpdates()
{
if (!Version::instance().isSupportedOS())
auto version = Version::instance();
if (!version.isSupportedOS())
{
qCDebug(chatterinoUpdate)
<< "Update checking disabled because OS doesn't appear to be one "
@@ -241,7 +243,7 @@ void Updates::checkForUpdates()
}
// Disable updates on Flatpak
if (QFileInfo::exists("/.flatpak-info"))
if (version.isFlatpak())
{
return;
}