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 643659 Details for
Bug 810040
F17/F18 xen/kvm/vmware/hyperv guest with no USB: gnome-shell fails to start if fprintd is present
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]
updated patch
foo.patch (text/plain), 2.70 KB, created by
Ray Strode [halfline]
on 2012-11-12 18:20:34 UTC
(
hide
)
Description:
updated patch
Filename:
MIME Type:
Creator:
Ray Strode [halfline]
Created:
2012-11-12 18:20:34 UTC
Size:
2.70 KB
patch
obsolete
>From 4052794691fe5b96167cde9637ee14a401a65785 Mon Sep 17 00:00:00 2001 >From: Ray Strode <rstrode@redhat.com> >Date: Mon, 12 Nov 2012 12:36:47 -0500 >Subject: [PATCH] main: request name unconditionally at startup > >the dbus activation machinery depends on daemons taking a name on >the bus to complete activation without timeouts. > >fprintd fails prematurely if there is USB bus (as found in some >virtual machine setups). > >This commit moves the bus-name-acquisition code to happen before >the fail-from-no-usb-bus code to keep callers from timing out >when activating fprintd. >--- > src/main.c | 43 ++++++++++++++++++++++--------------------- > 1 file changed, 22 insertions(+), 21 deletions(-) > >diff --git a/src/main.c b/src/main.c >index 598a38f..0a0c5b4 100644 >--- a/src/main.c >+++ b/src/main.c >@@ -316,6 +316,28 @@ int main(int argc, char **argv) > g_log_set_always_fatal (fatal_mask); > } > >+ /* Obtain a connection to the session bus */ >+ fprintd_dbus_conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error); >+ if (fprintd_dbus_conn == NULL) { >+ g_warning("Failed to open connection to bus: %s", error->message); >+ return 1; >+ } >+ >+ driver_proxy = dbus_g_proxy_new_for_name(fprintd_dbus_conn, >+ DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS); >+ >+ >+ if (!org_freedesktop_DBus_request_name(driver_proxy, FPRINT_SERVICE_NAME, >+ 0, &request_name_ret, &error)) { >+ g_warning("Failed to get name: %s", error->message); >+ return 1; >+ } >+ >+ if (request_name_ret != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) { >+ g_warning ("Got result code %u from requesting name", request_name_ret); >+ return 1; >+ } >+ > /* Load the configuration file, > * and the default storage plugin */ > if (!load_conf()) >@@ -338,31 +360,10 @@ int main(int argc, char **argv) > > g_print("Launching FprintObject\n"); > >- /* Obtain a connection to the session bus */ >- fprintd_dbus_conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error); >- if (fprintd_dbus_conn == NULL) { >- g_warning("Failed to open connection to bus: %s", error->message); >- return 1; >- } >- > /* create the one instance of the Manager object to be shared between > * all fprintd users */ > manager = fprint_manager_new(no_timeout); > >- driver_proxy = dbus_g_proxy_new_for_name(fprintd_dbus_conn, >- DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS); >- >- if (!org_freedesktop_DBus_request_name(driver_proxy, FPRINT_SERVICE_NAME, >- 0, &request_name_ret, &error)) { >- g_warning("Failed to get name: %s", error->message); >- return 1; >- } >- >- if (request_name_ret != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) { >- g_warning ("Got result code %u from requesting name", request_name_ret); >- return 1; >- } >- > g_message("D-Bus service launched with name: %s", FPRINT_SERVICE_NAME); > > g_message("entering main loop"); >-- >1.8.0 >
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 810040
:
633460
|
643647
| 643659