Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 990482 Details for
Bug 1191171
"Could not sync environment to dbus." (startkde)
Home
New
Search
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.rh90 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]
Tentative patch for ksyncdbusenv
plasma-workspace-ksyncdbusenv-gcc5.patch (text/plain), 1.55 KB, created by
Lukáš Tinkl
on 2015-02-11 16:03:33 UTC
(
hide
)
Description:
Tentative patch for ksyncdbusenv
Filename:
MIME Type:
Creator:
Lukáš Tinkl
Created:
2015-02-11 16:03:33 UTC
Size:
1.55 KB
patch
obsolete
>diff --git a/startkde/ksyncdbusenv/ksyncdbusenv.cpp b/startkde/ksyncdbusenv/ksyncdbusenv.cpp >index 8a01e7d..06e54d2 100644 >--- a/startkde/ksyncdbusenv/ksyncdbusenv.cpp >+++ b/startkde/ksyncdbusenv/ksyncdbusenv.cpp >@@ -17,6 +17,8 @@ > * You should have received a copy of the GNU General Public License > * along with this program. If not, see <http://www.gnu.org/licenses/>. > */ >+#include <stdlib.h> >+ > #include <QCoreApplication> > #include <QDBusConnection> > #include <QDBusMessage> >@@ -31,6 +33,7 @@ Q_DECLARE_METATYPE(EnvMap) > int main(int argc, char **argv) > { > QCoreApplication app(argc, argv); >+ qDBusRegisterMetaType<EnvMap>(); > > QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); > >@@ -43,13 +46,12 @@ int main(int argc, char **argv) > QStringLiteral("/org/freedesktop/DBus"), > QStringLiteral("org.freedesktop.DBus"), > QStringLiteral("UpdateActivationEnvironment")); >- qDBusRegisterMetaType<EnvMap>(); >- msg.setArguments(QList<QVariant>({QVariant::fromValue(envMap)})); >+ msg << QVariant::fromValue(envMap); > > QDBusPendingCall reply = QDBusConnection::sessionBus().asyncCall(msg); > reply.waitForFinished(); > if (reply.isError()) { >- qDebug() << reply.error().name() << reply.error().message(); >+ qDebug() << reply.error().name() << reply.error().message(); > } >- return reply.isError() ? 1 : 0; >+ return reply.isError() ? EXIT_FAILURE : EXIT_SUCCESS; > }
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 1191171
: 990482