GNOME Bugzilla – Bug 704473
xrandr: don't ever show a dialog for xrandr failures
Last modified: 2013-07-18 17:05:26 UTC
First, we're using gtk_dialog_run which is a big no-no in a system service (since it blocks the service). Second, a user will be able to tell if their configuration changes aren't working, the dialog doesn't help them. Third, the dialogs frequently contain technobable about crtc 65 and the like. This commit gets rid of them.
Created attachment 249523 [details] [review] xrandr: don't ever show a dialog for xrandr failures
Review of attachment 249523 [details] [review]: Looks good apart from those 2 bits. ::: plugins/xrandr/gsd-xrandr-manager.c @@ +1340,3 @@ error_message (GsdXrandrManager *mgr, const char *primary_text, GError *error_to_display, const char *secondary_text) { + log_msg("%s\n%s\n%s\n", g_warning() instead (or in addition to that)? @@ +1380,1 @@ error_message (mgr, str, NULL, _("Trying to switch the monitor configuration anyway.")); I'd rather have the really crappy developer error instead of this though.
Attachment 249523 [details] pushed as 0f7cbfe - xrandr: don't ever show a dialog for xrandr failures