summarylogtreecommitdiffstats
path: root/remove-qt-x11-no-mitshm.patch
blob: af9a947591a8d1512acf288aeb046f72fbda9801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/unetbootin/main.cpp b/src/unetbootin/main.cpp
index 1ef73048..965bdca6 100644
--- a/src/unetbootin/main.cpp
+++ b/src/unetbootin/main.cpp
@@ -296,7 +296,7 @@ int main(int argc, char **argv)
             argsconcSingleQuote += "'rootcheck=no'";
 #ifdef Q_OS_LINUX
             QString gksuarg1;
-            gksuarg1 += QString("bash -c 'QT_X11_NO_MITSHM=1 ");
+            gksuarg1 += QString("bash -c ' ");
             gksuarg1 += QString("%1 %2").arg(app.applicationFilePath()).arg(argsconc);
             gksuarg1 += QString("'");
             QStringList gksuargs;
@@ -343,7 +343,7 @@ int main(int argc, char **argv)
 			rootmsgb.setIcon(QMessageBox::Warning);
 			rootmsgb.setWindowTitle(uninstaller::tr("Must run as root"));
 			rootmsgb.setTextFormat(Qt::RichText);
-            rootmsgb.setText(uninstaller::tr("%2 must be run as root. Close it, and re-run using either:<br/><b>sudo QT_X11_NO_MITSHM=1 %1</b><br/>or:<br/><b>su -c 'QT_X11_NO_MITSHM=1 %1'</b>").arg(app.applicationFilePath()).arg(UNETBOOTINB));
+			rootmsgb.setText(uninstaller::tr("%2 must be run as root. Close it, and re-run using either:<br/><b>sudo %1</b><br/>or:<br/><b>su -c '%1'</b>").arg(app.applicationFilePath()).arg(UNETBOOTINB));
 			rootmsgb.setStandardButtons(QMessageBox::Ok);
 			switch (rootmsgb.exec())
 			{