summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pvsgui.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp
index 5359449..5ae3db6 100644
--- a/src/pvsgui.cpp
+++ b/src/pvsgui.cpp
@@ -338,6 +338,17 @@ void PVSGUI::connected(QString host)
_trayIcon->setIcon(QIcon(":cam_on32.svg"));
_trayIcon->setToolTip(tr("Connected to ") + host);
}
+
+ // try to disable screensaver
+ if (QProcess::execute("xscreensaver-command -exit") == 0)
+ qDebug("xscreensaver disabled");
+ else
+ qDebug("xscreensaver NOT disabled");
+
+ if (QProcess::execute("gnome-screensaver-command --exit") == 0)
+ qDebug("gnome-screensaver disabled");
+ else
+ qDebug("gnome-screensaver NOT disabled");
}
void PVSGUI::disconnected()