[graphics/krita/krita/5.2] libs/ui: Simple-mindedly check whether krita was installed through steam

Halla Rempt null at kde.org
Wed Aug 2 10:27:57 BST 2023


Git commit 37b0cbfd59433c48bf426942dd13868f3143cc34 by Halla Rempt.
Committed on 02/08/2023 at 11:27.
Pushed by rempt into branch 'krita/5.2'.

Simple-mindedly check whether krita was installed through steam

For now, this is probably good enough: we check whether the
application path contains "steam".

CCMAIL:kimageshop at kde.org

M  +4    -0    libs/ui/KisApplication.cpp

https://invent.kde.org/graphics/krita/-/commit/37b0cbfd59433c48bf426942dd13868f3143cc34

diff --git a/libs/ui/KisApplication.cpp b/libs/ui/KisApplication.cpp
index 0b489608665..5395bacc6b3 100644
--- a/libs/ui/KisApplication.cpp
+++ b/libs/ui/KisApplication.cpp
@@ -816,6 +816,10 @@ bool KisApplication::isStoreApplication()
         return true;
     }
 
+    if (applicationDirPath().toLower().contains("steam")) {
+        return true;
+    }
+
 #ifdef Q_OS_WIN
     // This is also true for user-installed MSIX, but that's
     // likely only true in institutional situations, where


More information about the kimageshop mailing list