Can't delete file from desktop by clicking it and hitting delete key

Bug #1844808 reported by Jonathan Kamens
98
This bug affects 27 people
Affects Status Importance Assigned to Milestone
gnome-shell-extension-desktop-icons
Fix Released
Unknown
gnome-shell-extension-desktop-icons (Baltix)
In Progress
Undecided
Mantas Kriaučiūnas
gnome-shell-extension-desktop-icons (Ubuntu)
Fix Released
Low
Marco Trevisan (Treviño)
Focal
Fix Released
Low
Marco Trevisan (Treviño)
Groovy
Fix Released
Low
Marco Trevisan (Treviño)

Bug Description

Just upgraded to 19.10 today. Previously, in 19.04, I could delete a file from the desktop by clicking on it and hitting the delete key. That no longer works.

It's probably relevant that it doesn't appear to be possible to direct keyboard focus to the desktop itself any longer. When I click on an icon on the desktop and then hit the delete key, the keystroke is sent to the window that had focus before I clicked. This appears to be true regardless of what window focus mode I'm using (Click to Focus, Focus on Hover, or Secondary-Click). Note that the description of Secondary-Click, "Window is focused when hovered with the pointer. Hovering the desktop removes focus from the previous window," does not appear to be true. When I select that focus mode and hover my mouse over the desktop I remain focused on the previously focused window.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: gnome-shell-extension-desktop-icons 19.01.4-1
ProcVersionSignature: Ubuntu 5.3.0-10.11-generic 5.3.0-rc8
Uname: Linux 5.3.0-10-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 20 11:12:42 2019
InstallationDate: Installed on 2019-09-12 (7 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitecture: all
SourcePackage: gnome-shell-extension-desktop-icons
UpgradeStatus: Upgraded to eoan on 2019-09-20 (0 days ago)

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Jonathan Kamens (jik) wrote :

Strangely, I am now unable to reproduce this issue. It was definitely happening before but isn't happening now. Don't know what's up.

Revision history for this message
Jonathan Kamens (jik) wrote :

This is now happening again.

I can't figure out what makes it start and stop happening.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you add your 'journalctl -b 0' log after triggering the issue?

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Jonathan Kamens (jik) wrote :

Just reproduced it. `journalctl -b 0` output attached.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, do you remember around what time you hit the bug to match the right part of the log?bb

Revision history for this message
Jonathan Kamens (jik) wrote :

It was just a few seconds before I captured the log, max 30 seconds, probably less than half that.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: New → Confirmed
summary: - in 19.10 can't delete file from desktop by clicking it and hitting
- delete key
+ Can't delete file from desktop by clicking it and hitting delete key
tags: added: focal
tags: added: a11y
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The Desktop Icons developer is now working on it.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

I'm the developer of Desktop Icons. Yes, I'm working on it, but any help is appreciated ;-)

tags: added: rls-ff-incoming
tags: added: desktop-lts-wishlist
removed: rls-ff-incoming
Revision history for this message
Adam Dingle (adam-yorba) wrote :

This bug still exists in Ubuntu 20.04. It's particularly insidious because it's easy to delete a file by mistake: if a Nautilus window has focus and you click on a desktop icon and press the Delete key, then Nautilus will delete the file (which you might or might not notice).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Triaged → In Progress
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: In Progress → Fix Committed
tags: added: fixed-upstream
Revision history for this message
razor7 (ghiamar) wrote :

Hi! At time of writing, applying the patch results in moving the desktop file/folder to trash, but no difference with **shift+delete** (it also moves the file to the trash)

To apply the patch intermediately instead of waiting to the release of the updated package, you can follow this steps.

If you followed https://gitlab.gnome.org/GNOME/nautilus/issues/158#alternative-solution, you may need these extra steps:

 - rm ~/.config/autostart/nemo-autostart-with-gnome.desktop
 - sudo apt-get purge nemo
 - sudo apt autoremove -y
 - sudo apt install --reinstall gnome-shell-extension-desktop-icons

Then edit this two files:

 - In a terminal: sudo nautilus
 - Navigate to /usr/share/gnome-shell/extensions/desktop-icons@csoriano/
 - Open createFolderDialog.js with gedit or similar
 - Copy/Paste https://gitlab.gnome.org/World/ShellExtensions/desktop-icons/-/raw/8ba06e3f456e211dfeace27bb27221cd375b65de/createFolderDialog.js
 - Open desktopGrid.js with gedit or similar
 - Copy/Paste https://gitlab.gnome.org/World/ShellExtensions/desktop-icons/-/raw/8ba06e3f456e211dfeace27bb27221cd375b65de/desktopGrid.js

Restart and you're done!

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in gnome-shell-extension-desktop-icons (Ubuntu Focal):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-desktop-icons - 20.04.0-2

---------------
gnome-shell-extension-desktop-icons (20.04.0-2) unstable; urgency=medium

  * debian/patches: Update translations from git
  * fileItem.js: unselect a file with Ctrl or Shift (LP: #1845491)
  * general: Fix key symbols (LP: #1844808)
  * fileItem.js: Refresh thumbnails if file changes (LP: #1879375)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 18 May 2020 20:32:21 +0200

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Jonathan, or anyone else affected,

Accepted gnome-shell-extension-desktop-icons into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/20.04.0-2~ubuntu20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnome-shell-extension-desktop-icons (Ubuntu Focal):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Jonathan Kamens (jik) wrote :

I can't test because I've followed the instructions in https://gitlab.gnome.org/GNOME/nautilus/issues/158#alternative-solution to switch to Nemo to address both this issue and https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons/+bug/1813441, which still hasn't been fixed.

Revision history for this message
Norbert (nrbrtx) wrote :

Package from proposed fixes the bug.

tags: added: verification-done-focal
removed: verification-needed-focal
Changed in gnome-shell-extension-desktop-icons (Baltix):
status: New → In Progress
assignee: nobody → Mantas Kriaučiūnas (mantas)
milestone: none → baltix-18.04
Revision history for this message
frank (frankwu) wrote :

20.04.0-2 package does not fix shift-delete...delete works

ii gnome-shell-extension-desktop-icons 20.04.0-2~ubuntu20.04.1

also it does not fix other bugs reported in https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1881115

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

^^^
Ignore that comment. Turns out frank is using nautilus-desktop instead

Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for gnome-shell-extension-desktop-icons has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-desktop-icons - 20.04.0-2~ubuntu20.04.1

---------------
gnome-shell-extension-desktop-icons (20.04.0-2~ubuntu20.04.1) focal; urgency=medium

  * Backport to focal
  * debian/control: Set ubuntu developers as maintainers
  * debian/{control*,gbp.conf}: Adapt to focal branching

gnome-shell-extension-desktop-icons (20.04.0-2) unstable; urgency=medium

  * debian/patches: Update translations from git
  * fileItem.js: unselect a file with Ctrl or Shift (LP: #1845491)
  * general: Fix key symbols (LP: #1844808)
  * fileItem.js: Refresh thumbnails if file changes (LP: #1879375)

 -- Marco Trevisan (Treviño) <email address hidden> Tue, 19 May 2020 14:17:45 +0200

Changed in gnome-shell-extension-desktop-icons (Ubuntu Focal):
status: Fix Committed → Fix Released
Norbert (nrbrtx)
tags: removed: eoan
Changed in gnome-shell-extension-desktop-icons:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.