summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomislav Vujec <tvujec@gmail.com>2009-11-17 19:42:38 -0500
committerThomas Thurman <tthurman@gnome.org>2010-05-02 11:03:31 -0400
commitf7e4514b76f7204bf86c545995ce0cfb2a461e87 (patch)
tree85b33b86ad26991c0b1565e94370e3db16ee59b6
parent13d0d52eb885598885b6ff4b73c795c8f29c2a6b (diff)
downloadmetacity-f7e4514b76f7204bf86c545995ce0cfb2a461e87.tar.gz
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
-rw-r--r--src/core/session.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/session.c b/src/core/session.c
index 5589cf4e..2ca15c92 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -1103,8 +1103,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);