Merge pull request #51 from Bearborg/allow-primehack

Allow using PrimeHack for QuickPlay
This commit is contained in:
Henrique Gemignani Passos Lima 2025-08-10 19:41:15 +03:00 committed by GitHub
commit b8dcdcf514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,7 +324,7 @@ bool SetDolphinPath(QWidget* pParentWidget, const QString& kDolphinPath, bool bS
// Dolphin unfortunately collide's with KDE Plasma's file manager which also happens to be named "Dolphin" // Dolphin unfortunately collide's with KDE Plasma's file manager which also happens to be named "Dolphin"
// Fortunately the latter uses a lowercase name so we can differentiate. // Fortunately the latter uses a lowercase name so we can differentiate.
QStringList VersionParts = VersionString.split(' '); QStringList VersionParts = VersionString.split(' ');
if (VersionParts.count() != 2 || VersionParts[0] != "Dolphin") if (VersionParts.count() < 2 || (VersionParts[0] != "Dolphin" && VersionParts[0] != "PrimeHack"))
{ {
if (!bSilent) if (!bSilent)
{ {
@ -333,7 +333,7 @@ bool SetDolphinPath(QWidget* pParentWidget, const QString& kDolphinPath, bool bS
return false; return false;
} }
debugf("Found dolphin version %s", *TO_TSTRING(VersionParts[1])); debugf("Found %s version %s", *TO_TSTRING(VersionParts.first()), *TO_TSTRING(VersionParts.last()));
// Build is legit, stash it // Build is legit, stash it
QSettings Settings; QSettings Settings;