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 320091 - disable_quit lockdown works partly
disable_quit lockdown works partly
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
git master
Other Linux
: Normal normal
: 2.16.x
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
Depends on:
Blocks:
 
 
Reported: 2005-10-28 15:30 UTC by Wouter Bolsterlee (uws)
Modified: 2006-08-07 20:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds an if in ephy_window_delete_event (589 bytes, patch)
2006-07-17 06:16 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Wouter Bolsterlee (uws) 2005-10-28 15:30:52 UTC
The disable_quit lockdown property works fine for ctrl-w and the close/quit menu
entry. However, it does not work when clicking the window manager's close button
(the X in the corner).
Comment 1 Bastien Nocera 2006-01-12 16:51:42 UTC
Vincent, what are applications supposed to do in that particular case?
Comment 2 Vincent Untz 2006-01-13 17:26:26 UTC
Err. I don't know :-)
But I agree that it sounds weird to be able to close the app with the window manager. Maybe there should be an hint to tell the window manager to not show/disable this button for some windows?

cc'ing Elijah. Maybe he'll have an idea about this.
Comment 3 Elijah Newren 2006-01-13 18:03:06 UTC
The WM merely sends a request to the app to close itself (WM_DELETE_WINDOW); it's not uncommon for apps to handle these requests by throwing up an are-you-sure dialog or something similar.  So, you could just have the app ignore such requests altogether.  Admittedly, it's just a short term workaround because having inoperative buttons is kinda tacky...

Longer term, there's a feature request currently for allowing certain types of windows to not have close buttons, which could be extended slightly to cover what you want.  Havoc points out in the bug that there are some MWM hints that could be used for this for now, though we'd probably need an EWMH extension meaning we'd have to get this hammered out on wm-spec-list.  Anyway see bug 319723 for more details (though not much) on that end.
Comment 4 Wouter Bolsterlee (uws) 2006-04-28 10:04:08 UTC
This bug makes Epiphany unsuitable for kiosk-mode. Of course fullscreen can also be forced, but then it's still possible to close the window with Alt-F4.
Comment 5 Christian Persch 2006-04-28 11:10:14 UTC
Should be easy to add a check into ephy-window's delete event handler for this.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2006-07-17 06:16:05 UTC
Created attachment 69020 [details] [review]
Adds an if in ephy_window_delete_event

This adds:

    if (eel_gconf_get_boolean("/apps/epiphany/lockdown/disable_quit")) {
        return TRUE;
    }

To ephy_window_delete_event(), so it just does nothing when the lockdown is set.
Comment 7 Christian Persch 2006-07-17 13:45:03 UTC
Thanks for the patch!

It's fine, except that you used spaces instead of tabs for indentation.
Comment 8 Christian Persch 2006-08-07 20:51:27 UTC
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.