thumbnails stretched on desktop 20.04 after previous bug fix release

Bug #1892276 reported by TJ on 2020-08-20
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gnome-shell-extension-desktop-icons (Ubuntu)

Bug Description

I updated all packages from the update branch and in the last week or two the pdfs on my desktop are displayed incorrectly and stretched out. It appears that I did not have the bug prior to the fix, but have it now that I have updated to the new package version.
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2017-07-03 (1147 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
NonfreeKernelModules: nvidia_modeset nvidia
Package: gnome-shell-extension-desktop-icons 20.04.0-3~ubuntu20.04.1
PackageArchitecture: all
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Tags: focal
Uname: Linux 5.4.0-42-generic x86_64
UpgradeStatus: Upgraded to focal on 2020-04-28 (118 days ago)
UserGroups: adbusers adm cdrom dialout dip lpadmin plugdev sambashare sudo tty uucp video
_MarkForUpload: True

Daniel van Vugt (vanvugt) wrote :


1. Run this command to send us more information about the system:

   apport-collect 1892276

2. Report the bug to the developers at

   and then tell us the new issue ID.

tags: added: focal
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected
description: updated

apport information

I have run the command as requested and opened a new issue for gnome. The issue number is #216.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Incomplete → New
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
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
importance: Undecided → Low
summary: - pdf images stretched on desktop 20.04 after previous bug fix release
+ thumbnails stretched on desktop 20.04 after previous bug fix release
Nathan Jessurun (ntjess) wrote :

Minor additional information:
- Also affects Ubuntu 20.10
- Stretching does not occur in the File Explorer Nautilus window, just the desktop preview.

Tengda Han (htd95) wrote :

A possible fix:
In (or locally /usr/share/gnome-shell/extensions/desktop-icons@csoriano/fileItem.js):
Replace: `let containerWidth = (this._icon.allocation.x2 - this._icon.allocation.x1) * scaleFactor;`
with `let containerWidth = (this._icon.allocation.x2 - this._icon.allocation.x1);`

The scaleFactor here is unnecessary.

Tengda Han (htd95) wrote :

Tested on Ubuntu 20.04.1, with display scale 200%. Desktop thumbnails work fine after removing the scaleFactor multiplier as above.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: Confirmed → Triaged
GilgongoJones (gilgongo) wrote :

Confirm htd95's fileItem.js fixes this for me on newly upgraded Ubuntu 20.04.2.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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