I'd like to programmatically access and manipulate the Desktop icon positions, their icons, etc.
This is for files and directories that you keep in ~/Desktop .
Where is this stuff stored?
|
|
|
Stored as GVFS metadata attributes. To get all GVFS metadata attributes for file/directory:
To get specific attribute - icon position:
To set icon position:
Remember to refresh desktop (F5 key) to see effect. If lower level manipulation required there is Nautilus Extension API (via libnautilus): https://developer.gnome.org/libnautilus-extension/stable/ and specifically: https://developer.gnome.org/libnautilus-extension/stable/NautilusFileInfo.html |
|||||
|