Skip to content

Commit

Permalink
fix: The application name is incorrectly written
Browse files Browse the repository at this point in the history
Description: The application name is incorrectly written

Log: The application name is incorrectly written
  • Loading branch information
hundundadi authored and deepin-bot[bot] committed Oct 16, 2023
1 parent fdc29ea commit 368e9e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets/logconfig/deepin-terminal.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "deepin-terminal",
"exec": "/usr/bin/deepin-termnial",
"exec": "/usr/bin/deepin-terminal",
"logType": "journal",
"logPath": "~/.cache/deepin/deepin-termnial/deepin-termnial.log",
"logPath": "~/.cache/deepin/deepin-terminal/deepin-terminal.log",
"visible": "1",
"version": "V1.0"
}
7 changes: 7 additions & 0 deletions src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ DWIDGET_USE_NAMESPACE

DCORE_USE_NAMESPACE

Q_DECLARE_LOGGING_CATEGORY(LogMain)

int main(int argc, char *argv[])
{
if (!QString(qgetenv("XDG_CURRENT_DESKTOP")).toLower().startsWith("deepin")) {
Expand All @@ -44,14 +46,19 @@ int main(int argc, char *argv[])

// 系统日志
#if (DTK_VERSION >= DTK_VERSION_CHECK(5,6,8,0))
qCDebug(LogMain) << "current libdtkcore5 > 5.6.8.0";
DLogManager::registerJournalAppender();
qCInfo(LogMain) << "Current log register journal!";
#ifdef QT_DEBUG
DLogManager::registerConsoleAppender();
qCInfo(LogMain) << "Current log register console!";
#endif
#else
qCDebug(LogMain) << "current libdtkcore5 < 5.6.8.0";
// DLogManager::registerJournalAppender();
DLogManager::registerConsoleAppender();
DLogManager::registerFileAppender();
qCInfo(LogMain) << "Current log register console and file!";
#endif

// 参数解析
Expand Down

0 comments on commit 368e9e5

Please sign in to comment.