SHA256
1
0
forked from pool/fcitx
fcitx/fcitx-use-basename-for-log.patch
Takashi Iwai 70b7a4fe79 Accepting request 340480 from home:tiwai:branches:M17N
- Fix logging not to include the build path (boo#951602)

- Several fixes and cleanup for starting fcitx on GNOME on Leap
  (boo#947576,boo#942816)
  * Remove the superfluous manual dbus-launch from xim script
  * Use xdg autostart for GNOME, KDE, LXDE and XFCE;
    fcitx-autostart script is also modified to check $INPUT_METHOD
  * Delay start of fcitx daemon a bit, too

OBS-URL: https://build.opensuse.org/request/show/340480
OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=124
2015-10-22 18:05:26 +00:00

24 lines
537 B
Diff

---
src/lib/fcitx-utils/log.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/src/lib/fcitx-utils/log.c
+++ b/src/lib/fcitx-utils/log.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <stdio.h>
#include <wchar.h>
+#include <libgen.h>
#include "config.h"
#include "fcitx/fcitx.h"
@@ -136,7 +137,7 @@ FcitxLogFunc(FcitxLogLevel e, const char
{
va_list ap;
va_start(ap, fmt);
- FcitxLogFuncV(e, filename, line, fmt, ap);
+ FcitxLogFuncV(e, basename(filename), line, fmt, ap);
va_end(ap);
}