After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 388265 - Disable lame client warning
Disable lame client warning
Status: RESOLVED DUPLICATE of bug 160712
Product: metacity
Classification: Other
Component: general
trunk
Other All
: Normal enhancement
: ---
Assigned To: Christian Neumair
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2006-12-21 13:40 UTC by Christian Neumair
Modified: 2007-01-12 19:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Proposed (untested) patch (2.88 KB, patch)
2006-12-21 13:41 UTC, Christian Neumair
rejected Details | Review
Proposed patch that will remove the lame clients dialog (12.25 KB, patch)
2006-12-21 18:49 UTC, Christian Neumair
none Details | Review

Description Christian Neumair 2006-12-21 13:40:01 UTC
Metacity currently warns on logout when clients don't support SM. One should be able to disable this, at least with a compile time switch.
Comment 1 Christian Neumair 2006-12-21 13:41:35 UTC
Created attachment 78737 [details] [review]
Proposed (untested) patch
Comment 2 Havoc Pennington 2006-12-21 15:32:16 UTC
This is the sort of ifdef that will break all the time because nobody tests it. What is the rationale for it? If it's just for embedded systems or something then there's a one-line patch the systems integrator could maintain themselves...

If there is some good reason to have this in configure.in, I think putting the #ifdef only around the actual warning or otherwise ensuring it's a very small amount of #ifdef code would be good for avoiding breakage.
Comment 3 Christian Neumair 2006-12-21 17:04:42 UTC
"What is the rationale for it?"

http://www.mail-archive.com/usability@gnome.org/msg02968.html

"If there is some good reason to have this in configure.in, I think putting the
#ifdef only around the actual warning or otherwise ensuring it's a very small
amount of #ifdef code would be good for avoiding breakage."

Initially, I wanted to solve it according to your suggestion, but not calling its helpers resulted in a "unused function" warning with GCC.
Comment 4 Christian Neumair 2006-12-21 17:18:55 UTC
A quick test revealed that this seems to work properly, btw - i.e. SM-less clients are ignored.
Comment 5 Havoc Pennington 2006-12-21 17:50:24 UTC
I don't see the mention of this issue in that thread you linked to?

There are two different rationales needed here -
 1) why the warning about broken apps is bad in some end user 
    scenarios
 2) why the warning about broken apps is bad *only for some people 
    who compile metacity* (distributions, gnome developers, who else ... ?)
    which would dictate a configure option.
    If it's bad *always* then we just remove this code, if it's bad
    for *some end users* that may not correspond to *people building 
    metacity* then we need an automagic decision by metacity or 
    failing that a gconf option, rather than a compile-time option




Comment 6 Christian Neumair 2006-12-21 18:35:10 UTC
> I don't see the mention of this issue in that thread you linked to?


I see, it looks like I misunderstood the thread.

The poster stated

"To me, ideally, if an application is not going to prompt to save unsaved
work it should exit silently without reappearing on the screen.  Do people
agree with this?"

So translated into a technical language, this might be interpreted as "SM aware apps that don't show an interactive save dialog pop up on logout" which is probably a consequence of the WM being quit first, i.e. bug 144107.

My interpretation of it was "on logout, we mess around with apps that are not SM aware", which seems to be wrong.



Regarding the warning, I still think it isn't useful but distracting, as the user can't correct anything, and app authors are usually aware whether their apps support SM or not. So I think 1) applies and you are totally correct that this should be decided for all users. I'm marking this patch as "rejected", and CCing usability.

Renaming bug report from
  Allow to disable lame client warning
to
  Disable lame client warning
Comment 7 Christian Neumair 2006-12-21 18:49:02 UTC
Created attachment 78748 [details] [review]
Proposed patch that will remove the lame clients dialog

This patch will remove the

  These windows do not support \"save current setup\" and will have to be
  restarted manually next time you log in.

dialog.
Comment 8 Havoc Pennington 2006-12-21 19:54:40 UTC
We don't "save current setup" automatically on logout anymore, right?

I think this dialog only shows up if you explicitly ask to save the session, in which case telling you your explicit request won't work seems plausible.

Of course, my general view on XSMP is that it should be taken out and shot precisely because there are and will always be so many apps that it won't work right with, clearly the right usability answer is that instead of having a "this won't work" dialog we should avoid offering features that won't work.

While we do have features that won't work, telling people seems possibly nicer than just silently not working, I suppose...

I think the original idea here was largely to help get bug reports about "xyz didn't come back after I saved session" sent to the bug tracker for xyz instead of to gnome-session or metacity, which is where most users would assume they should go.
Comment 9 Matthew Paul Thomas (mpt) 2006-12-24 04:17:50 UTC
IIRC, Ubuntu has "Save current setup" on by default instead of having a "Save current setup" checkbox in the logout dialog.

To make this dialog useful, I suggest:
*   Make it an actual dialog, replacing the "Close" button with "Cancel" and
    "$ACTION Anyway" (where $ACTION = "Log Out", "Shut Down", or "Restart").
*   Make the list of windows live, each disappearing from the list as it is
    closed. (The dialog itself should close automatically once the list has
    been empty for a couple of seconds.)
*   Change the message so that it doesn't leave the user helpless. For
    example: "Some programs will not resume automatically when you next log
    in. You may want to close them yourself now, to ensure you don't lose
    any work."
*   Reduce the height of the dialog, so that it's more obvious you can
    access other windows while it's open.
All these would be improvements alone, but they'd be best working together.
Comment 10 Elijah Newren 2007-01-12 19:10:46 UTC
There was another bug already open about this; I've copied some of the comments from this bug (including mpt's suggestions) into the other one.

*** This bug has been marked as a duplicate of 160712 ***