Item sorting messed up by dragging

Bug #1016575 reported by Timo Reimerdes
56
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Plank
Fix Released
Medium
Unassigned

Bug Description

When using dragging to rearange items the numbers in the .dockitem files that make the items sorted are not adjusted accordingly.

This can result in gaps in the numeration that will then be used by newly opened apps, causing weird sorting.

like

Pinned, Pinned, New, Pinned, Pinned, ...

---
It should be:

Pinned, Pinned, ..., Pinned, New

---

To reproduce:
pin apps to plank
move around apps using mouse-drag
remove any app from somewhere in the middle
open any other application
it might just take the spot of the previously removed one, or any that fits in the numbers

---
Checking the .desktop files I found 100* numbering mixed with single digit numbering and no system really.

Tags: dnd
Revision history for this message
Timo Reimerdes (timorei) wrote :

One thing:

I was able to fix this behaviour by manually editing the .dockitem files with scratch and adjusting the numbers to be continuous.

tags: added: dnd
Robert Dyer (psybers)
Changed in plank:
importance: Undecided → Low
Revision history for this message
ktf (keithfancher) wrote :

This affects me as well. It looks like any icons that were ordered by dragging have a "Sort" value of 1005, and any new (unpinned) applications appear to the left of those. Manually setting Sort values fixes the issue, as Timo mentions.

Interestingly, for pinned applications, the Sort value seems to be (mostly?) ignored. They just appear in the order they're listed in the "settings" file.

Revision history for this message
Timo Reimerdes (timorei) wrote :

It's still present right now. Not hurtfull, but it confused the hell out of a co-worker of mine who I am grooming to become an elementary fanboy.

I did write a script that replaces the numbering in exactly the way MY launchers are supposed to be, but that would break horribly if any get added or moved. *g* But it definately is caused by the 'creative' aka 'wrong' sort-values in the launcher files.

Changed in plank:
importance: Low → Medium
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

The Sort attribute was removed now and the feature to provide right-aligned items will be revisited.

Changed in plank:
status: New → Incomplete
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
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.