aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorswirl <swurl@swurl.xyz>2022-02-13 13:35:04 -0500
committerswirl <swurl@swurl.xyz>2022-02-13 13:35:15 -0500
commit5779f20fa1633577889b7bda839c5486eb2ba922 (patch)
tree8a3c8a9fe87555cc24deae5b60e18b091f4d14b8
parenta5b06514c633313409a5f4e479f1d6f354f8c4e2 (diff)
downloadPrismLauncher-5779f20fa1633577889b7bda839c5486eb2ba922.tar.gz
PrismLauncher-5779f20fa1633577889b7bda839c5486eb2ba922.tar.bz2
PrismLauncher-5779f20fa1633577889b7bda839c5486eb2ba922.zip
make wsl work
-rw-r--r--launcher/Application.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index a3d6216e..6bf090e1 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -192,27 +192,6 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
#endif
startTime = QDateTime::currentDateTime();
-#ifdef Q_OS_LINUX
- {
- QFile osrelease("/proc/sys/kernel/osrelease");
- if (osrelease.open(QFile::ReadOnly | QFile::Text)) {
- QTextStream in(&osrelease);
- auto contents = in.readAll();
- if(
- contents.contains("WSL", Qt::CaseInsensitive) ||
- contents.contains("Microsoft", Qt::CaseInsensitive)
- ) {
- showFatalErrorMessage(
- "Unsupported system detected!",
- "Linux-on-Windows distributions are not supported.\n\n"
- "Please use the Windows binary when playing on Windows."
- );
- return;
- }
- }
- }
-#endif
-
// Don't quit on hiding the last window
this->setQuitOnLastWindowClosed(false);