Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1035  / 3 Years ago, sun, october 3, 2021, 8:14:12

I'm using Ubuntu MATE 20.04 LTS. There are a lot carefully aligned icons on my desktop. Something like shown below:


icons


I can't find icon positions attributes in dconf / gsettings.


How can I backup their current positions to restore them later? Where such a file is located?


More From » 20.04

 Answers
1

Quick greping in home folder gives the following file name with needed information:


~/.local/share/gvfs-metadata/home

It is special file to be operated by gio info or gio set.




Every icon has its own metadata attribute. So one can:



  • read it by


    gio info -a "metadata::caja-icon-position" ~/Desktop/file1.txt

    to get something like



    attributes:
    metadata::caja-icon-position: 922,382


    where 922 and 382 are horizontal and vertical pixel positions for file1.txt icon.



  • write it by


    gio set -t string ~/Desktop/file1.txt metadata::caja-icon-position 300,400

    to move file1.txt icon to the location specified by 300 and 400 coordinates in pixels.


    Then one needs to ask Caja to refresh the desktop by calling caja -q.




[#1871] Tuesday, October 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rinstracte

Total Points: 221
Total Questions: 114
Total Answers: 120

Location: France
Member since Fri, Jan 28, 2022
2 Years ago
rinstracte questions
Wed, Jun 15, 22, 02:09, 2 Years ago
Tue, Jan 24, 23, 01:39, 1 Year ago
Wed, Jun 9, 21, 04:34, 3 Years ago
Sun, Apr 17, 22, 11:38, 2 Years ago
;