Skip to content

Commit 80d4828

Browse files
committed
App: add debug infomation
1 parent b0709ad commit 80d4828

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

App/Client/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ int main(int argc, char *argv[])
5252
QString szPlatform = QString::fromLocal8Bit(qgetenv("QT_QPA_PLATFORM"));
5353
if(szPlatform.isEmpty() || "wayland" == szPlatform)
5454
qputenv("QT_QPA_PLATFORM", "xcb");
55+
qInfo(log) << "Current Qt Platform is:"
56+
<< QString::fromLocal8Bit(qgetenv("QT_QPA_PLATFORM"))
57+
<< "; This can be modified with the environment variables QT_QPA_PLATFORM:\n"
58+
<< "export QT_QPA_PLATFORM=xcb\n Optional: xcb; vnc";
5559
#endif
5660
#if (QT_VERSION > QT_VERSION_CHECK(5,6,0)) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
5761
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

Plugins/WakeOnLan/ConnecterWakeOnLan.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ int CConnecterWakeOnLan::Connect()
188188
QString szAppImage = QString::fromLocal8Bit(qgetenv("APPIMAGE"));
189189
if(!szAppImage.isEmpty())
190190
szExec = szAppImage;
191-
bool bRet = RabbitCommon::CTools::executeByRoot(szExec);
192-
qDebug(log) << "Execute:" << bRet << QCoreApplication::applicationFilePath();
193-
if(bRet && msg.checkBox()->isChecked()) {
194-
QCoreApplication::quit();
191+
if(!szExec.isEmpty()) {
192+
bool bRet = RabbitCommon::CTools::executeByRoot(szExec);
193+
qDebug(log) << "Execute:" << bRet << QCoreApplication::applicationFilePath();
194+
if(bRet && msg.checkBox()->isChecked()) {
195+
QCoreApplication::quit();
196+
}
195197
}
196198
}
197199
}

Script/build_appimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ echo "Build AppImage ......"
184184
# See: https://github.com/linuxdeploy/linuxdeploy-plugin-qt
185185
#export QMAKE=$QT_ROOT/bin/qmake6
186186
#export PATH=$QT_ROOT/libexec:$PATH
187-
export EXTRA_PLATFORM_PLUGINS="libqxcb.so"
187+
export EXTRA_PLATFORM_PLUGINS="libqxcb.so;libqvnc.so"
188188
# Icons from theme are not displayed in QtWidgets Application: https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/17
189189
export EXTRA_QT_MODULES="svg"
190190
export PATH=$PATH:${TOOLS_DIR}

0 commit comments

Comments
 (0)