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 541967 - Make possible to remove image with 'Delete' without being asked for confirmation
Make possible to remove image with 'Delete' without being asked for confirmation
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
unspecified
Other All
: Normal minor
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-07 22:59 UTC by Ari Torhamo
Modified: 2009-04-10 12:01 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Ari Torhamo 2008-07-07 22:59:24 UTC
When I press 'Delete' to remove an image in eog, I'm asked if I'm sure I want to remove it. This is okay, but I think it would be useful to have the option to disable the question. When going through hundreds of images, having to always confirm slows down the process unnecessarily. Even Nautilus moves files directly to trash without asking, when 'Delete' is pressed. Another way to arrange this would be to use some other key in combination with 'Del' to change the behaviour. In this case the key combination should be easy to use.

Other information:
Comment 1 Claudio Saavedra 2008-09-06 10:22:02 UTC
Hm, that could make sense. After all, sending to the trash is not an unrecoverable action. What do others think?
Comment 2 Felix Riemann 2008-09-06 13:12:46 UTC
EOG only asks when deleting via the keyboard. This was AFAIK done to avoid accidential deletions by hitting the wrong key. Using the menu entry will trash whithout asking. (at least it was that way)

Another proposal for this which I find pretty good is bug #543158. The idea is to add a "Don't ask me again during this session" switch once you trash the first image, and then are not asked again for the others until you restart EOG.
Comment 3 Felix Riemann 2008-09-06 13:17:21 UTC
Oh, forgot the first proposal:

My first idea was to add a Shift+Del shortcut for trashing without asking.
Comment 4 Nick Jenkins 2008-10-27 21:58:37 UTC
Personally I would quite like to see this behavior (deletion without prompting). If there are concerns about it accidental deletion, maybe add a preference that allows people to turn the prompting off? Or prompt the first time, and then remember forever (the per-session prompting could get a bit annoying - it's not like my preference for being prompted changes every time I run EOG, it's more an invariant personal preference). E.g. something like this:
----------------------------
Are you sure you want to delete this file?
(Yes) (No)
[x] Never ask me to confirm this action ever again.
----------------------------
Comment 5 Felix Riemann 2009-04-10 12:01:58 UTC
So, yesterday I implemented bug #543158 in trunk. Today I extended it so people can disable the dialog permanently. As we don't really endorse this I didn't make it UI-visible. It'll require changing a GConf key (/apps/eog/ui/disable_trash_confirmation), but if a UI element is needed one could easily implement it as a plugin.

Note that it still displays a dialog when a file would be deleted (e.g. no trash available).

2009-04-10  Felix Riemann  <>

	* data/eog.schemas.in:
	* src/eog-config-keys.h:
	* src/eog-window.c: (show_move_to_trash_confirm_dialog):
	Make it possible to disable the trash confirmation dialog
	using a GConf key. Same restrictions apply as before.
	Fixes bug #541967.

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.