Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 619381 Details for
Bug 688098
[abrt] pinentry-qt-0.8.1-1.fc14: qt_message_output: Process /usr/bin/pinentry-qt4 was killed by signal 6 (SIGABRT)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix crash on missing DISPLAY envvar in ibus-qt
0001-Do-not-crash-on-missing-invalid-DISPLAY-envvar.patch (text/plain), 2.21 KB, created by
Peter Wu
on 2012-09-30 09:22:10 UTC
(
hide
)
Description:
fix crash on missing DISPLAY envvar in ibus-qt
Filename:
MIME Type:
Creator:
Peter Wu
Created:
2012-09-30 09:22:10 UTC
Size:
2.21 KB
patch
obsolete
>From fab6dc760edc39b9b4e561cfbf21b38c4fa86234 Mon Sep 17 00:00:00 2001 >From: Peter Wu <lekensteyn@gmail.com> >Date: Tue, 4 Sep 2012 19:40:08 +0200 >Subject: [PATCH] Do not crash on missing/invalid DISPLAY envvar. > >- Check whether the passed DISPLAY environment variable contains ":". > >- Fallback to "-display" parameter passed to QApplication. >--- > src/CMakeLists.txt | 2 ++ > src/qibusbus.cpp | 23 ++++++++++++++++------- > 2 files changed, 18 insertions(+), 7 deletions(-) > >diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt >index 2ad5588..8866ac0 100644 >--- a/src/CMakeLists.txt >+++ b/src/CMakeLists.txt >@@ -92,9 +92,11 @@ set_target_properties( > target_link_libraries( > ibus-qt > debug ${QT_QTCORE_LIBRARY_DEBUG} >+ debug ${QT_QTGUI_LIBRARY_DEBUG} > debug ${QT_QTDBUS_LIBRARY_DEBUG} > debug ${QT_QTXML_LIBRARY_DEBUG} > optimized ${QT_QTCORE_LIBRARY_RELEASE} >+ optimized ${QT_QTGUI_LIBRARY_RELEASE} > optimized ${QT_QTDBUS_LIBRARY_RELEASE} > optimized ${QT_QTXML_LIBRARY_RELEASE} > ${DBUS_LIBRARIES} >diff --git a/src/qibusbus.cpp b/src/qibusbus.cpp >index 6a45d65..ed8248a 100644 >--- a/src/qibusbus.cpp >+++ b/src/qibusbus.cpp >@@ -12,7 +12,8 @@ > #include "qibusbus.h" > #include "qibusibusproxy.h" > #include "qibusdbusproxy.h" >- >+#include <X11/Xlib.h> >+#include <QX11Info> > > namespace IBus { > /** >@@ -121,15 +122,23 @@ QString > Bus::getSocketPath (void) > { > QString display = getenv ("DISPLAY"); >- QStringList strs = display.split(":"); > QString hostname = "unix"; > QString display_number = "0"; >+ /* fallback when -display is passed to QApplication with no DISPLAY env */ >+ if (display == NULL) { >+ Display * dpy = QX11Info::display(); >+ if (dpy) >+ display = XDisplayString(dpy); >+ } >+ if (display != NULL && display.contains(':')) { >+ QStringList strs = display.split(":"); > >- if (!strs[0].isEmpty()) >- hostname = strs[0]; >- strs = strs[1].split("."); >- if (!strs[0].isEmpty()) >- display_number = strs[0]; >+ if (!strs[0].isEmpty()) >+ hostname = strs[0]; >+ strs = strs[1].split("."); >+ if (!strs[0].isEmpty()) >+ display_number = strs[0]; >+ } > > QString path = > QDir::homePath() + >-- >1.7.12 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 688098
:
485699
|
578805
| 619381