Install a categories file for kdebugsettings
Instead of setting our own filter rules we install a categories file to allow to configure them. This seems to still have them enabled by default, but should at least give distributions the possibility to disable logging by default.
This commit is contained in:
parent
df1146bfa6
commit
f7d317601e
6 changed files with 9 additions and 10 deletions
|
@ -8,4 +8,5 @@ install(TARGETS kwin5_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_
|
|||
########### install files ###############
|
||||
|
||||
install( FILES stripTitle.js DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
||||
install( FILES org_kde_kwin.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
|
||||
|
||||
|
|
8
data/org_kde_kwin.categories
Normal file
8
data/org_kde_kwin.categories
Normal file
|
@ -0,0 +1,8 @@
|
|||
kwin_core KWin Core
|
||||
kwineffects KWin Effects
|
||||
kwin_wayland_drm KWin Wayland (DRM backend)
|
||||
kwin_wayland_framebuffer KWin Wayland (Framebuffer backend)
|
||||
kwin_wayland_hwcomposer KWin Wayland (hwcomposer backend)
|
||||
kwin_wayland_backend KWin Wayland (Wayland backend)
|
||||
kwin_wayland_x11windowed KWin Wayland (X11 backend)
|
||||
aurorae KWin Aurorae Window Decoration Engine
|
7
main.cpp
7
main.cpp
|
@ -346,13 +346,6 @@ void Application::setupLocalizedString()
|
|||
KLocalizedString::setApplicationDomain("kwin");
|
||||
}
|
||||
|
||||
void Application::setupLoggingCategoryFilters()
|
||||
{
|
||||
QLoggingCategory::setFilterRules(QStringLiteral("aurorae.debug = true\n") +
|
||||
QStringLiteral("kwineffects.debug = true\n") +
|
||||
QStringLiteral("kwin_core.debug = true"));
|
||||
}
|
||||
|
||||
void Application::notifyKSplash()
|
||||
{
|
||||
// Tell KSplash that KWin has started
|
||||
|
|
1
main.h
1
main.h
|
@ -146,7 +146,6 @@ public:
|
|||
|
||||
static void setupMalloc();
|
||||
static void setupLocalizedString();
|
||||
static void setupLoggingCategoryFilters();
|
||||
|
||||
static bool usesLibinput();
|
||||
static void setUseLibinput(bool use);
|
||||
|
|
|
@ -432,7 +432,6 @@ int main(int argc, char * argv[])
|
|||
|
||||
KWin::Application::setupMalloc();
|
||||
KWin::Application::setupLocalizedString();
|
||||
KWin::Application::setupLoggingCategoryFilters();
|
||||
|
||||
if (signal(SIGTERM, KWin::sighandler) == SIG_IGN)
|
||||
signal(SIGTERM, SIG_IGN);
|
||||
|
|
|
@ -195,7 +195,6 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
|
|||
{
|
||||
KWin::Application::setupMalloc();
|
||||
KWin::Application::setupLocalizedString();
|
||||
KWin::Application::setupLoggingCategoryFilters();
|
||||
|
||||
int primaryScreen = 0;
|
||||
xcb_connection_t *c = xcb_connect(nullptr, &primaryScreen);
|
||||
|
|
Loading…
Reference in a new issue