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 592098 Details for
Bug 828015
[abrt] gimp-2.8.0-1.fc17: __strlen_sse2_pminub: Process /usr/bin/gimp-2.8 was killed by signal 11 (SIGSEGV)
[?]
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.
dconf database dumper
dconf-dump.c (text/x-csrc), 2.19 KB, created by
Nils Philippsen
on 2012-06-15 10:36:28 UTC
(
hide
)
Description:
dconf database dumper
Filename:
MIME Type:
Creator:
Nils Philippsen
Created:
2012-06-15 10:36:28 UTC
Size:
2.19 KB
patch
obsolete
>/* > * To build: > * > * gcc -g -o dconf-dump dconf-dump.c `pkg-config --cflags --libs dconf glib-2.0` > * > * To run: > * > * dconf-dump <dconf-db-name> > */ > >#include <stdio.h> >#include <stdlib.h> > >#include <glib.h> >#include <dconf.h> > >gint dconf_dump_dir (DConfClient *client, const gchar *dir) >{ > gchar **dir_list; > gint dir_len; > gint i; > > g_return_val_if_fail (dconf_is_dir (dir, NULL), -1); > > dir_list = dconf_client_list (client, dir, &dir_len); > > for (i = 0; i < dir_len; i++) > { > gchar *path = g_strdup_printf ("%s%s", dir, dir_list[i]); > > if (dconf_is_key (path, NULL)) > { > GVariant *value = dconf_client_read_no_default (client, path); > gchar *value_str = g_variant_print (value, FALSE); > g_variant_unref (value); > > g_print ("%s: %s\n", path, value_str); > } > else if (dconf_is_dir (path, NULL)) > { > gint retval = dconf_dump_dir (client, path); > if (retval) > return retval; > } > else > { > g_printerr ("path '%s' can't be handled.\n", path); > g_free (path); > g_strfreev (dir_list); > return -1; > } > g_free (path); > } > > g_strfreev (dir_list); > > return 0; >} > >gchar *dconf_profile_create (const gchar *dbname) >{ > gchar *profile_path = NULL; > gint profile_fd; > FILE *profile_file; > > profile_fd = g_file_open_tmp ("dconf-dump-profile.XXXXXX", > &profile_path, NULL); > > profile_file = fdopen (profile_fd, "w"); > > fprintf (profile_file, "user-db:%s\n", dbname); > > fclose (profile_file); > > return profile_path; >} > >gint dconf_dump (const gchar *dbname) >{ > DConfClient *client; > gchar *profile_path; > gint retval; > > profile_path = dconf_profile_create (dbname); > > client = dconf_client_new (profile_path, NULL, NULL, NULL); > > retval = dconf_dump_dir (client, "/"); > > g_unlink (profile_path); > g_free (profile_path); > > return retval; >} > >void usage (void) >{ > g_printerr ("Usage: dconf-dump <dconf-db-name>\n"); > exit(1); >} > >int main (int argc, char **argv) >{ > if (argc != 2) > usage (); > > g_type_init (); > > return dconf_dump (argv[1]); >}
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 Raw
Actions:
View
Attachments on
bug 828015
:
589000
|
589001
|
589002
|
589003
| 592098 |
592200