Moving Desktop icons position

Issues related to applications and software problems and general support
toni_
Posts: 10
Joined: 2020/01/17 16:22:38

Moving Desktop icons position

Post by toni_ » 2020/01/17 16:32:15

Hi,
I would like to know if there is a way in command line to move (change the graphical location x,y) desktop icons ?

I know that gvfs-set-attribute was the right one to use in the past and for a very few distribution like nautilus and nemo
but do not work today on Centos8.

I saw on the net that GIO is the new command line to use maybe instead of gvfs.. it would be gio set ...
but i have tried that command line too, and do not work, i tried as root and as user.

sml
Posts: 67
Joined: 2020/01/17 09:01:44

Re: Moving Desktop icons position

Post by sml » 2020/01/21 11:02:38

From what I can see, the problem is not with the new command, as gio set has exactly the same syntax as gvfs-set-attribute. The problem seems to be with the Gnome shell extension Desktop Icons.

toni_
Posts: 10
Joined: 2020/01/17 16:22:38

Re: Moving Desktop icons position

Post by toni_ » 2020/01/21 16:19:45

Hi,
thanks for your answer.

Please not that i am newbie in linux world.

so here is more information :

os
---
centos8

added soft
-------------
- gnome tweaks tools
--------------------------
(to allow icons on desktop) even if i know that just changing my login connection setting to 'classic' would have allow icons on desktop instead of 'wayland server' but i prefere to keep default 'wayland server).

-and Dash to panel
-------------------------
because i like to have menu on the bottom left like windows.

so in the terminal i have tried :
gio set /home/user1/Bureau/d/ metadata::nemo-icon-position 100,100
gio set /home/user1/Bureau/d/ metadata::nautilus-icon-position 100,100

and i get message that nemo and nautilus attribute are not recognized.

Your help to solve this issue is greatfully appreciated ;-)

sml
Posts: 67
Joined: 2020/01/17 09:01:44

Re: Moving Desktop icons position

Post by sml » 2020/01/21 17:16:25

toni_ wrote:
2020/01/21 16:19:45
(to allow icons on desktop) even if i know that just changing my login connection setting to 'classic' would have allow icons on desktop instead of 'wayland server' but i prefer to keep default 'wayland server).
As I undestand it, this can only work in GNOME Classic mode.
gio set /home/user1/Bureau/d/ metadata::nemo-icon-position 100,100
gio set /home/user1/Bureau/d/ metadata::nautilus-icon-position 100,100
You just don't have such attributes in the default GNOME session.

BTW, what is the output of

Code: Select all

sudo getcap /usr/bin/gnome-shell
(it should be empty)

and the output of

Code: Select all

gio info ~/Bureau/d/* | egrep 'standard::name|metadata::'
?

toni_
Posts: 10
Joined: 2020/01/17 16:22:38

Re: Moving Desktop icons position

Post by toni_ » 2020/01/21 20:53:56

getcap /usr/bin/gnome-shell
output : empty, nada, nothing

gio info ~/Bureau/d/* | egrep 'standard::name|metadata::'
output : all the subdirectory that are in ~/Bureau/d/

sml
Posts: 67
Joined: 2020/01/17 09:01:44

Re: Moving Desktop icons position

Post by sml » 2020/01/22 16:18:28

toni_ wrote:
2020/01/21 16:19:45
so in the terminal i have tried :
gio set /home/user1/Bureau/d/ metadata::nemo-icon-position 100,100
gio set /home/user1/Bureau/d/ metadata::nautilus-icon-position 100,100

and i get message that nemo and nautilus attribute are not recognized.
Have you tried it from inside a GNOME session? E.g. doing it remotely over ssh won't work. It also may be tricky to get it work from a script depending on what environment that script is running in. Please post the output of

Code: Select all

gio info -w ~/Bureau/d | grep metadata
toni_ wrote:
2020/01/17 16:32:15
i have tried that command line too, and do not work, i tried as root and as user.
The gio command should be run as the owner of the file. Also, make sure that all the files in /home/user1/.local/share/gvfs-metadata are owned by user1.
toni_ wrote:
2020/01/21 20:53:56
gio info ~/Bureau/d/* | egrep 'standard::name|metadata::'
output : all the subdirectory that are in ~/Bureau/d/
Oops, sorry, my fault. You've tried to change the position of the folder icon for folder d, right? Then it should have been

Code: Select all

gio info ~/Bureau/d | egrep 'standard::name|metadata::'
It should display standard::name: d in the first line and then a bunch of lines starting with metadata::.

toni_
Posts: 10
Joined: 2020/01/17 16:22:38

Re: Moving Desktop icons position

Post by toni_ » 2020/01/23 12:03:10

Yes I Have you tried it from inside a GNOME session, not remotely.

in /home/user1/Bureau
in terminal i type : gio info -w /d | grep metadata
output : metadata (string, Copier avec le fichier, Conserver avec le fichier lors du déplacement)

permission of /home/user1/.local/share/gvfs-metadata
is : drwx------. 2 user1 user1 255 23 jan 12:44 gvfs-metadata

in /home/user1/Bureau
in terminal i type : gio info /d | egrep 'standard::name|metadata::'
output is :
gio: file:///d: Erreur lors de l’obtention des informations du fichier « /d » : Aucun fichier ou dossier de ce type

sml
Posts: 67
Joined: 2020/01/17 09:01:44

Re: Moving Desktop icons position

Post by sml » 2020/01/23 12:28:31

toni_ wrote:
2020/01/23 12:03:10
permission of /home/user1/.local/share/gvfs-metadata
is : drwx------. 2 user1 user1 255 23 jan 12:44 gvfs-metadata
And what is the ownership of files located in gvfs-metadata? What I mean is the output of

Code: Select all

ls -l /home/user1/.local/share/gvfs-metadata
in /home/user1/Bureau
in terminal i type : gio info /d | egrep 'standard::name|metadata::'
output is :
gio: file:///d: Erreur lors de l’obtention des informations du fichier « /d » : Aucun fichier ou dossier de ce type
In this case, it should have been just d, not /d:

Code: Select all

cd /home/user1/Bureau
gio info d | egrep 'standard::name|metadata::'

toni_
Posts: 10
Joined: 2020/01/17 16:22:38

Re: Moving Desktop icons position

Post by toni_ » 2020/01/24 16:18:08

Hi,
command line:
ls -l /home/user1/.local/share/gvfs-metadata

output:
total 184
-rw-------. 1 user1 user1 2976 24 jan 17:13 home
-rw-r--r--. 1 user1 user1 32768 24 jan 17:13 home-9f239915.log
-rw-------. 1 user1 user1 64 23 jan 12:42 root
-rw-r--r--. 1 user1 user1 32768 23 jan 12:42 root-02f242fe.log
-rw-------. 1 user1 user1 64 15 jan 15:19 root.3QW7D0
-rw-r--r--. 1 user1 user1 32768 15 jan 17:23 root-ee4cf037.log
-rw-------. 1 user1 user1 64 22 jan 15:16 root.RF4ZE0
-rw-------. 1 user1 user1 212 21 jan 21:24 trash:
-rw-r--r--. 1 user1 user1 32768 21 jan 21:24 trash:-73efc4b2.log
-rw-------. 1 user1 user1 2784 24 jan 17:13 uuid-FE2874ED2874A675
-rw-r--r--. 1 user1 user1 32768 24 jan 17:13 uuid-FE2874ED2874A675-361f3c1b.log

command line:
gio info d | egrep 'standard::name|metadata::'

output:
standard::name: d
metadata::nautilus-icon-position: 840,126
metadata::nautilus-icon-view-sort-by: name
metadata::nautilus-icon-view-sort-reversed: false
metadata::nautilus-list-view-sort-column: name
metadata::nautilus-list-view-sort-reversed: false

sml
Posts: 67
Joined: 2020/01/17 09:01:44

Re: Moving Desktop icons position

Post by sml » 2020/01/26 18:30:19

toni_ wrote:
2020/01/24 16:18:08
metadata::nautilus-icon-position: 840,126
As you can see gio set does work as advertised and sets metadata properties for the file. But AFAICT, modern versions of Nautilus make no use of icon-position property. Here are all metadata properties that Nautilus currently supports. Support for icon-position was removed from Nautilus in January 2018.

Post Reply

Return to “CentOS 8 - General Support”