Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/dde-session/environmentsmanager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2021 - 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2021 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -51,7 +51,7 @@ void EnvironmentsManager::init()
QDBusPendingReply<void> replySystemd1 = systemd1.SetEnvironment(envs);
replySystemd1.waitForFinished();
if (replySystemd1.isError()) {
qWarning() << "failed to set systemd1 envs: " << envs;
qWarning() << "failed to set systemd1 envs: " << envs << ", error:" << replySystemd1.error();
}

// dbus
Expand All @@ -64,7 +64,7 @@ void EnvironmentsManager::init()
QDBusPendingReply<void> replyDbus = dbus.UpdateActivationEnvironment(envInfos);
replyDbus.waitForFinished();
if (replyDbus.isError()) {
qWarning() << "failed to update dbus envs:" << envInfos;
qWarning() << "failed to update dbus envs:" << envInfos << ", error:" << replyDbus.error();
}
}

Expand Down Expand Up @@ -146,7 +146,7 @@ bool EnvironmentsManager::unsetEnv(QString env)
QDBusPendingReply<void> replyDbus = dbus.UpdateActivationEnvironment(envs);
replyDbus.waitForFinished();
if (replyDbus.isError()) {
qWarning() << "unset dbus env failed:" << env;
qWarning() << "unset dbus env failed:" << env << ", error:" << replyDbus.error();
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/dde-session/impl/sessionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,14 +990,14 @@ void SessionManager::handleLoginSessionUnlocked()
org::freedesktop::DBus dbusInter("org.freedesktop.DBus", "/org/freedesktop/DBus", QDBusConnection::sessionBus());
QDBusPendingReply<QString> ownerReply = dbusInter.GetNameOwner("org.deepin.dde.LockFront1");
if (ownerReply.isError()) {
qWarning() << "failed to get lockFront service owner";
qWarning() << "failed to get lockFront service owner" << ", error:" << ownerReply.error();
return;
}
const QString &owner = ownerReply.value();

QDBusPendingReply<uint> pidReply = dbusInter.GetConnectionUnixProcessID(owner);
if (pidReply.isError()) {
qWarning() << "failed to get lockFront service pid";
qWarning() << "failed to get lockFront service pid" << ", error:" << pidReply.error();
return;
}
uint pid = pidReply.value();
Expand Down
4 changes: 2 additions & 2 deletions src/dde-session/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2021 - 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2021 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -36,7 +36,7 @@ int startSystemdUnit(org::freedesktop::systemd1::Manager &systemd1, const QStrin
QDBusPendingReply<QDBusObjectPath> reply = systemd1.StartUnit(unitName, unitType);
reply.waitForFinished();
if (reply.isError()) {
qWarning() << "start systemd unit failed:" << unitName;
qWarning() << "start systemd unit failed:" << unitName << ", error:" << reply.error();
return -1;
}
qInfo() << "success to start systemd unit:" << unitName << ", job path:" << reply.value().path();
Expand Down
Loading