GNOME Bugzilla – Bug 341595
Dialog displayed when opening a broken link should cancel by default
Last modified: 2010-05-02 22:52:49 UTC
This was reported to the Debian BTS. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=337335 When opening a broken symlink, nautilus asks what to do and wants to delete the link by default. This is especially annoying when working in a network environment without mounting the proper shared directories. I often simply forget to mount the shares and delete links by accident. Please change the default dialog choice to cancel. No system should delete anything by default.
For some reasons setting the response type at the relevant position on the eel dialog has no effect. So I've created a patch which uses a GtkMessageDialog (it looks the same).
Created attachment 113285 [details] [review] Proposed patch with GtkMessageDialog
Not sure exactly why this isn't a one-liner: -gtk_dialog_set_default_response (dialog, GTK_RESPONSE_YES); +gtk_dialog_set_default_response (dialog, GTK_RESPONSE_CANCEL); But before this change goes in we should probably review the other cases so that we're not making this case inconsistent with the rest.
For some reason GTK_RESPONSE_CANCEL didn't work at the time I wrote the patch. So instead of "fixing" eel, I used GtkMessageDialog. Did you try the one-liner actually?
No I haven't, just agreeing with you that it is bizarre.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.