summaryrefslogtreecommitdiffstats
path: root/src/xsession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r--src/xsession.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp
index fb274b4..6fc34e3 100644
--- a/src/xsession.cpp
+++ b/src/xsession.cpp
@@ -9,7 +9,6 @@
// TODO: void instead of bool? (or return something useful)
bool XSession::init(const QString& name, const QString& exec,
const QString& comment, const QString& icon) {
- printf("XSession::init()\n");
this->name_ = name;
this->exec_ = exec;
this->comment_ = comment;
@@ -51,10 +50,8 @@ bool XSession::run() const {
}
QList<Session*> XSession::readSessions(const QString& path) {
- printf("XSession::readSessions(%s)\n", path.toAscii().data());
QList<Session*> retval;
foreach (QFileInfo fi, QDir(path).entryInfoList(QStringList("*.desktop"))) {
- printf(" reading %s\n", fi.absoluteFilePath().toAscii().data());
if (fi.baseName().compare("default.desktop") == 0) {
continue;
}
@@ -63,17 +60,14 @@ QList<Session*> XSession::readSessions(const QString& path) {
settings.setIniCodec("UTF-8");
settings.beginGroup("Desktop Entry");
- printf(" keys: %s\n", settings.allKeys().join(",").toAscii().data());
if (settings.value("NoDisplay").toString().compare("true") == 0 ||
settings.value("Hidden").toString().compare("true") == 0) {
continue;
- printf(" session is hidden\n");
}
if (!settings.contains("Exec")) {
// TODO: error message
- printf(" no exec found\n");
continue;
}
QString exec(settings.value("Exec").toString());
@@ -89,7 +83,6 @@ QList<Session*> XSession::readSessions(const QString& path) {
name = settings.value("Name").toString();
} else {
// TODO: error message
- printf(" no name found\n");
continue;
}
@@ -110,8 +103,6 @@ QList<Session*> XSession::readSessions(const QString& path) {
icon = QString();
}
- printf(" adding session %s\n", name.toAscii().data());
-
XSession* session = new XSession;
session->init(name, exec, comment, icon);