Skip to content

Commit cbd57a9

Browse files
committed
chore: adapt debugging settings function
Using linuxdeepin/dde-control-center f86903a87b52048189d0d869c1828fc13da28c03 as reference. Log:
1 parent fac9d2b commit cbd57a9

16 files changed

Lines changed: 103 additions & 13 deletions

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,10 @@ install(
145145
FILES dist/org.deepin.dde.shell.launchpad.appdata.xml
146146
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
147147
)
148+
# debug config file
149+
install(FILES ${CMAKE_SOURCE_DIR}/dist/deepin-debug-config/org.deepin.dde.launchpad.json
150+
DESTINATION ${CMAKE_INSTALL_DATADIR}/deepin-debug-config/deepin-debug-config.d)
151+
install(FILES ${CMAKE_SOURCE_DIR}/dist/deepin-log-config/org.deepin.dde.launchpad.json
152+
DESTINATION ${CMAKE_INSTALL_DATADIR}/deepin-log-viewer/deepin-log.conf.d)
148153

149154
add_subdirectory(shell-launcher-applet)

debughelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <QLoggingCategory>
1111

1212
namespace {
13-
Q_LOGGING_CATEGORY(logDebugHelper, "dde.launchpad.debug")
13+
Q_LOGGING_CATEGORY(logDebugHelper, "org.deepin.dde.launchpad.debug")
1414
}
1515

1616
DebugHelper::DebugHelper(QObject *parent)

desktopintegration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
DCORE_USE_NAMESPACE
2525

2626
namespace {
27-
Q_LOGGING_CATEGORY(logDesktopIntegration, "dde.launchpad.desktop")
27+
Q_LOGGING_CATEGORY(logDesktopIntegration, "org.deepin.dde.launchpad.desktop")
2828
}
2929

3030
QString DesktopIntegration::currentDE()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "dde-launchpad",
3+
"group": "dde",
4+
"submodules": [
5+
{
6+
"name": "org.deepin.dde.launchpad",
7+
"exec": "org.deepin.dde.launchpad.sh"
8+
}
9+
],
10+
"version": "V1.0"
11+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"name": "dde-launchpad",
3+
"group": "dde",
4+
"submodules": [
5+
{
6+
"name": "launchpad.debug",
7+
"filter": "org.deepin.dde.launchpad.debug",
8+
"exec": "/usr/bin/dde-shell",
9+
"logType": "journal"
10+
},
11+
{
12+
"name": "launchpad.desktop",
13+
"filter": "org.deepin.dde.launchpad.desktop",
14+
"exec": "/usr/bin/dde-shell",
15+
"logType": "journal"
16+
},
17+
{
18+
"name": "launchpad.input",
19+
"filter": "org.deepin.dde.launchpad.input",
20+
"exec": "/usr/bin/dde-shell",
21+
"logType": "journal"
22+
},
23+
{
24+
"name": "launchpad.controller",
25+
"filter": "org.deepin.dde.launchpad.controller",
26+
"exec": "/usr/bin/dde-shell",
27+
"logType": "journal"
28+
},
29+
{
30+
"name": "launchpad.applet",
31+
"filter": "org.deepin.dde.launchpad.applet",
32+
"exec": "/usr/bin/dde-shell",
33+
"logType": "journal"
34+
},
35+
{
36+
"name": "launchpad.integration",
37+
"filter": "org.deepin.dde.launchpad.integration",
38+
"exec": "/usr/bin/dde-shell",
39+
"logType": "journal"
40+
},
41+
{
42+
"name": "launchpad.gioutils",
43+
"filter": "org.deepin.dde.launchpad.gioutils",
44+
"exec": "/usr/bin/dde-shell",
45+
"logType": "journal"
46+
},
47+
{
48+
"name": "launchpad.models",
49+
"filter": "org.deepin.dde.launchpad.models",
50+
"exec": "/usr/bin/dde-shell",
51+
"logType": "journal"
52+
},
53+
{
54+
"name": "launchpad.quick",
55+
"filter": "org.deepin.dde.launchpad.quick",
56+
"exec": "/usr/bin/dde-shell",
57+
"logType": "journal"
58+
},
59+
{
60+
"name": "launchpad.treeland",
61+
"filter": "org.deepin.dde.launchpad.treeland",
62+
"exec": "/usr/bin/dde-shell",
63+
"logType": "journal"
64+
},
65+
{
66+
"name": "launchpad.utils",
67+
"filter": "org.deepin.dde.launchpad.utils",
68+
"exec": "/usr/bin/dde-shell",
69+
"logType": "journal"
70+
}
71+
],
72+
"visible": 1,
73+
"version": "V1.0"
74+
}

inputeventitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "inputeventitem.h"
55
#include <QLoggingCategory>
66
namespace {
7-
Q_LOGGING_CATEGORY(logInputEvent, "dde.launchpad.input")
7+
Q_LOGGING_CATEGORY(logInputEvent, "org.deepin.dde.launchpad.input")
88
}
99

1010
InputEventItem::InputEventItem()

launchercontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
DGUI_USE_NAMESPACE
2121

2222
namespace {
23-
Q_LOGGING_CATEGORY(logController, "dde.launchpad.controller")
23+
Q_LOGGING_CATEGORY(logController, "org.deepin.dde.launchpad.controller")
2424
}
2525

2626
LauncherController::LauncherController(QObject *parent)

shell-launcher-applet/launcheritem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
DS_USE_NAMESPACE
1717
namespace {
18-
Q_LOGGING_CATEGORY(logApplet, "dde.launchpad.applet")
18+
Q_LOGGING_CATEGORY(logApplet, "org.deepin.dde.launchpad.applet")
1919
}
2020

2121
namespace dock {

src/ddeintegration/appearance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "blurhash.hpp"
1414
#include "../launchercontroller.h"
1515

16-
Q_LOGGING_CATEGORY(logDdeIntegration, "dde.launchpad.integration")
16+
Q_LOGGING_CATEGORY(logDdeIntegration, "org.deepin.dde.launchpad.integration")
1717

1818
using Appearance1 = __Appearance1;
1919

src/gioutils/appinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <QLoggingCategory>
1212
namespace {
13-
Q_LOGGING_CATEGORY(logGioUtils, "dde.launchpad.gioutils")
13+
Q_LOGGING_CATEGORY(logGioUtils, "org.deepin.dde.launchpad.gioutils")
1414
}
1515

1616

0 commit comments

Comments
 (0)