I have found
gvfs-info to display the data, including position, of a desktop icon, and I can set the position info of item
xyz.png on the desktop by doing:
gvfs-set-attribute ~/Desktop/xyz.png 'metadata::nemo-icon-position' 142,972
This results in output of further
gvfs-info calls that is the same as if you dragged the icon to that position and called
Unfortunately Cinnamon doesn't get notified of this change and continues to display the icon at the old position. If you restart
mdm the icon will be in the new position, but this is a bit to drastic a measure to get my icons aligned.
cinnamon --replace, doesn't reload the positions (but a restart of
mdm after that does).
Is there a command line way to notify Cinnamon to reread this info and update the desktop icon position? Or is there some other commandline utility that allows me to set the x,y position of a desktop item for Cinnamon?
Since I swapped my broken graphics card that supported only 2 monitors for a new one, I have all 3 monitors as one desktop: 2 landscape oriented and one portrait oriented. The whole setup looks like my gravatar. I used to have the third (landscape) monitor on a different system driven via
x2vnc so I could share the keyboard and mouse, in that situation I never had the following problem.
Since swapping the problem is that when I have items on my desktop and I right-click the desktop and select "Sort Desktop items by Name" that the icons disappear (Linux Mint 17.1 Cinnamon, same problem occurred on Ubuntu 12.04 Classic Gnome).
They items/icons are actually in the upper left corner above the left monitor. If there are enough icons on the desktop some will show up at the left border. I can select all icons and drag them to the right monitor to see them (it is "high" enough), and I can also open
~/Desktop and drag the icons from there to the visible area of the monitors.
What I would like to do is write a script that queries the current position of the desktop icons and move them somewhere else where they are visible.