Skip to content

Commit 5d866f4

Browse files
authored
Merge pull request #1 from yixinshark/fix-dbusStaticInterface
fix: inline staticInterfaceName function return correct value
2 parents 9fcdf5c + a4a5ae3 commit 5d866f4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/app/lightdm-deepin-greeter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ int main(int argc, char* argv[])
9797

9898
DLogManager::setLogFormat("%{time}{yyyy-MM-dd, HH:mm:ss.zzz} [%{type:-7}] [ %{function:-35} %{line}] %{message}\n");
9999
DLogManager::registerConsoleAppender();
100+
DLogManager::registerJournalAppender();
100101

101102
QDBusConnectionInterface *interface = QDBusConnection::systemBus().interface();
102103
if (!interface->isServiceRegistered(DSS_DBUS::accountsService)) {

src/global_util/dbus/dbuslockfront.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ class DBusLockFront: public QDBusAbstractInterface
4040
}
4141
public:
4242
static inline const char *staticInterfaceName()
43-
{ return DSS_DBUS::lockFrontService.toStdString().c_str(); }
43+
#ifndef ENABLE_DSS_SNIPE
44+
{ return "com.deepin.dde.lockFront"; }
45+
#else
46+
{ return "org.deepin.dde.LockFront1"; }
47+
#endif
4448

4549
public:
4650
explicit DBusLockFront(QObject *parent = 0);

src/global_util/dbus/dbuslockservice.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ class DBusLockService: public QDBusAbstractInterface
3030
Q_OBJECT
3131
public:
3232
static inline const char *staticInterfaceName()
33-
{ return DSS_DBUS::lockService.toStdString().c_str(); }
33+
#ifndef ENABLE_DSS_SNIPE
34+
{ return "com.deepin.dde.LockService"; }
35+
#else
36+
{ return "org.deepin.dde.LockService1"; }
37+
#endif
3438

3539
enum EventType {
3640
PromptQuestion = 1,

0 commit comments

Comments
 (0)