linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.53k stars 735 forks source link

Misaligned previews when moving files to desktop #10646

Open MinePro120 opened 2 years ago

MinePro120 commented 2 years ago

System details

 * Cinnamon 5.2.7
 * Arch (Garuda)
 * NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q], nvidia (nvidia-dkms v495.46)
 * 64 bit

Issue When moving files that can be previewed to the desktop (for example using the mv/cp command), the previews appear out of center, as shown below. Sometimes, that happens without using mv/cp, i.e. with a simple drag and drop. The length of the filename seems to be related, the issue appears to affect bigger filenames (but not necessarily ones that do not fit and are cut by "..."). Moving the item elsewhere in the desktop (and then back) makes the preview appear aligned. Sometimes, hovering the mouse over the file is enough to fix the preview.

1

Steps to reproduce One liner:

mx=1920;my=1080;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" RGB:- ~/Desktop/1234567890123456789.png
  1. Enable previews.
  2. Using cp or mv, copy an image with a filename of length, for example, 19, to the desktop.
  3. Preview should be misaligned.

Expected behaviour Preview should be aligned, as shown in the image below: 2

Secret-chest commented 2 years ago

Can reproduce on LM 20.3.

SebastJava commented 2 years ago

Can also reproduce on LM Cinnamon 20.3. Precision: Here on my English Cinnamon, we call these "thumbnails", not "previews" Prerequisites:

  1. Right-click an empty area on your Cinnamon desktop for Customize > Auto-arrange=false
  2. Nemo > Edit > Preferences > Preview > Show thumbnails = Yes

Duplicate: https://github.com/linuxmint/nemo/issues/2727