aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-terminal/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-utilities/lumina-terminal/main.cpp')
-rw-r--r--desktop-utilities/lumina-terminal/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-terminal/main.cpp b/desktop-utilities/lumina-terminal/main.cpp
index c117b8fb..48da4556 100644
--- a/desktop-utilities/lumina-terminal/main.cpp
+++ b/desktop-utilities/lumina-terminal/main.cpp
@@ -6,6 +6,7 @@
//===========================================
#include <QSystemTrayIcon>
#include <QDebug>
+#include <QSerialPortInfo>
#include <LuminaSingleApplication.h>
#include <LuminaThemes.h>
@@ -14,6 +15,10 @@
#include "TrayIcon.h"
int main(int argc, char *argv[]) {
+ if(QSerialPortInfo::availablePorts().isEmpty()){
+ qDebug() << "No Serial Ports available!!!";
+ return 1;
+ }
LTHEME::LoadCustomEnvSettings();
LSingleApplication a(argc, argv, "lumina-terminal");
if( !a.isPrimaryProcess() ){ return 0; } //poked the current process instead
bgstack15