linuxmint/Cinnamon — pull request #1346 by OutsiderPerspective (2012-11-10 06:47:54+00:00)
Title: Replace the linear numbering of the getUnique<thing> functions to use UUIDs instead

Replaced the linear numbering of getUnique functions
(which counts up from 1 to find a free file name) with a call to
uuid.uuidv1.

This provides UUID tagged entries which allows synchronizing
~/.local/share/applications files more easily between two computers.

Instead of:
> alacarte-made-1.desktop

we get:
> alacarte-made-aa49738a-2ac8-11e2-869b-1c6f65c8b78b.desktop

Both are functionally the same to the end user, but easier for
synchronization purposes (i.e. with rsync or Unison) since name
collisions are avoided, and the user can safely edit them and have
the changes propagate.

It's a little thing - but handy if you're like me and building up a collection
of apps that live in ~/opt and use local shortcuts, and a transparent
improvement otherwise.