mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
Don't warn about a missing session file
When started without session related command line parameters (e.g. from gnome-session), metacity picks up client_id from the DESKTOP_AUTOSTART_ID environment variable. Unfortunately, there is no way to distinguish if this was passed from a config file, representing old saved session, or generated by gnome-session, therefore load_state is attempted in each case. If the client_id is generated, there will be no session file, and metacity will report a warning. Just remove the warning so that users won't always find a warning at the start of their .xsession-errors. https://bugzilla.gnome.org/show_bug.cgi?id=577576
This commit is contained in:
parent
708c6162c4
commit
ab7d4e0e60
@ -1109,8 +1109,6 @@ load_state (const char *previous_save_file)
|
||||
{
|
||||
/* oh, just give up */
|
||||
|
||||
meta_warning (_("Failed to read saved session file %s: %s\n"),
|
||||
canonical_session_file, error->message);
|
||||
g_error_free (error);
|
||||
g_free (session_file);
|
||||
g_free (canonical_session_file);
|
||||
|
Loading…
Reference in New Issue
Block a user