forked from openkylin/ukui-search
Use ukui-log4qt instead of message handler module
This commit is contained in:
parent
82e74f4c6c
commit
87e4f4d02f
|
@ -17,7 +17,8 @@ Build-Depends: debhelper (>=9.0.0),
|
|||
libgsettings-qt-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libuchardet-dev,
|
||||
libpoppler-qt5-dev
|
||||
libpoppler-qt5-dev,
|
||||
libukui-log4qt-dev
|
||||
Standards-Version: 4.5.0
|
||||
Homepage: https://www.ukui.org/
|
||||
Vcs-Git: https://github.com/ukui/ukui-search.git
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <QLocale>
|
||||
#include <X11/Xlib.h>
|
||||
#include <syslog.h>
|
||||
#include <ukui-log4qt.h>
|
||||
#include <QObject>
|
||||
#include "qt-single-application.h"
|
||||
#include "qt-local-peer.h"
|
||||
|
@ -120,6 +121,9 @@ void centerToScreen(QWidget* widget) {
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//Init log module
|
||||
initUkuiLog4qt("ukui-search");
|
||||
|
||||
// Determine whether the home directory has been created, and if not, keep waiting.
|
||||
char *p_home = NULL;
|
||||
|
||||
|
@ -146,7 +150,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
// Output log to file
|
||||
qInstallMessageHandler(messageOutput);
|
||||
// qInstallMessageHandler(messageOutput);
|
||||
|
||||
// Register meta type
|
||||
qDebug() << "ukui-search main start";
|
||||
|
|
|
@ -9,6 +9,7 @@ TEMPLATE = app
|
|||
PKGCONFIG += gio-2.0 glib-2.0 gio-unix-2.0
|
||||
CONFIG += c++11 link_pkgconfig no_keywords lrelease
|
||||
LIBS += -lxapian -lgsettings-qt -lquazip5 -lX11
|
||||
LIBS += -lukui-log4qt
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any Qt feature that has been marked deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
|
|
|
@ -20,13 +20,16 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusError>
|
||||
|
||||
#include <ukui-log4qt.h>
|
||||
#include <QDebug>
|
||||
|
||||
#include "sysdbusregister.h"
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
|
||||
//init log module
|
||||
initUkuiLog4qt("ukui-search-service");
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
app.setOrganizationName("Kylin Team");
|
||||
app.setApplicationName("ukui-search-service");
|
||||
|
|
|
@ -9,6 +9,8 @@ TEMPLATE = app
|
|||
CONFIG += console c++11 link_pkgconfig
|
||||
CONFIG -= app_bundle
|
||||
|
||||
LIBS += -lukui-log4qt
|
||||
|
||||
DESTDIR = .
|
||||
INCLUDEPATH += .
|
||||
|
||||
|
|
Loading…
Reference in New Issue