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 469787 Details for
Bug 630052
gnome-session-save does not work from F9->F14
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.rh92 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]
Proposed patch for gnome-session
gnome-session-2.28.0-fix-discard-exec.patch (text/plain), 3.10 KB, created by
Olivier Fourdan
on 2010-12-20 15:24:10 UTC
(
hide
)
Description:
Proposed patch for gnome-session
Filename:
MIME Type:
Creator:
Olivier Fourdan
Created:
2010-12-20 15:24:10 UTC
Size:
3.10 KB
patch
obsolete
>diff -up gnome-session-2.28.0/gnome-session/gsm-session-save.c.discard gnome-session-2.28.0/gnome-session/gsm-session-save.c >--- gnome-session-2.28.0/gnome-session/gsm-session-save.c.discard 2010-12-13 16:15:19.749686106 +0100 >+++ gnome-session-2.28.0/gnome-session/gsm-session-save.c 2010-12-16 14:52:58.170336292 +0100 >@@ -43,6 +43,48 @@ typedef struct { > } SessionSaveData; > > static gboolean >+add_to_discard_hash (char *id, >+ GObject *object, >+ SessionSaveData *data) >+{ >+ GsmClient *client; >+ GError *local_error; >+ GKeyFile *keyfile; >+ char *discard_exec; >+ >+ >+ client = GSM_CLIENT (object); >+ local_error = NULL; >+ >+ keyfile = gsm_client_save (client, &local_error); >+ >+ if (keyfile == NULL || local_error) { >+ goto out; >+ } >+ >+ discard_exec = g_key_file_get_string (keyfile, >+ G_KEY_FILE_DESKTOP_GROUP, >+ GSM_AUTOSTART_APP_DISCARD_KEY, >+ NULL); >+ if (discard_exec) { >+ g_hash_table_insert (data->discard_hash, >+ discard_exec, discard_exec); >+ } >+ >+out: >+ if (keyfile != NULL) { >+ g_key_file_free (keyfile); >+ } >+ >+ /* in case of any error, stop saving session */ >+ if (local_error) { >+ g_error_free (local_error); >+ } >+ >+ return FALSE; >+} >+ >+static gboolean > save_one_client (char *id, > GObject *object, > SessionSaveData *data) >@@ -53,7 +95,6 @@ save_one_client (char *id, > char *filename = NULL; > char *contents = NULL; > gsize length = 0; >- char *discard_exec; > GError *local_error; > > client = GSM_CLIENT (object); >@@ -86,15 +127,6 @@ save_one_client (char *id, > goto out; > } > >- discard_exec = g_key_file_get_string (keyfile, >- G_KEY_FILE_DESKTOP_GROUP, >- GSM_AUTOSTART_APP_DISCARD_KEY, >- NULL); >- if (discard_exec) { >- g_hash_table_insert (data->discard_hash, >- discard_exec, discard_exec); >- } >- > g_debug ("GsmSessionSave: saved client %s to %s", id, filename); > > out: >@@ -158,6 +190,11 @@ gsm_session_save (GsmStore *client_stor > data.dir = save_dir; > data.discard_hash = g_hash_table_new_full (g_str_hash, g_str_equal, > g_free, NULL); >+ /* populate the old discard hash */ >+ gsm_store_foreach (client_store, >+ (GsmStoreFunc) add_to_discard_hash, >+ &data); >+ > /* remove the old saved session */ > gsm_session_clear_saved_session (save_dir, data.discard_hash); > data.error = error;
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 630052
:
469787
|
469789