Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-09-29 10:25:18

Stephen
Member
Registered: 2023-09-28
Posts: 12

Desktop icons are moved after reboot

Hello everyone. Each time I reboot some of my desktop icons are moved to the other part of the screen. How can I solve this problem? I tried this:

sudo chattr +i ~/.config/xfce4/desktop/icons*

,
but it gave out the error like 'Unsupported operation while reading flags...'. How can I solve my problem then?

Offline

#2 2023-09-30 02:19:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Desktop icons are moved after reboot

You are getting the error because one of the files is a symbolic link. You can just "chattr +i" the directory to stop it from being written to:

sudo chattr +i ~/.config/xfce4/desktop/

The bigger issue with desktop icons moving affecting some users, is currently being worked on. See:
- https://gitlab.xfce.org/xfce/xfdesktop/-/issues/47
- https://gitlab.xfce.org/xfce/xfdesktop/-/issues/208
- https://gitlab.xfce.org/xfce/xfdesktop/-/issues/209


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2023-09-30 03:36:02

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

I've done what you recommended me and restarted the graphics environment. The icons are still moved.

Offline

#4 2023-09-30 10:48:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Desktop icons are moved after reboot

Look to see what file "icons.screen.latest.rc" is linked to, and delete all of the other files in that directory. Then make the directory immutable using "chattr +i". See if that helps.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2023-09-30 11:58:32

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

This is what I have:
2023-09-30-20-56-27.png
Should I delete all the files except the first one?

Last edited by Stephen (2023-09-30 11:58:50)

Offline

#6 2023-09-30 16:00:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Desktop icons are moved after reboot

You should delete all but the one that the symlink points to - which would be the current active one. This might help to identify it (from a terminal window):

ls -l  ~/.config/xfce4/desktop/

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#7 2023-10-01 02:52:42

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

This is what I've got:

-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:09 icons.screen0-1227x784.rc
-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:50 icons.screen0-1264x680.rc
-rw-r--r-- 1 Stephen Stephen 1683 сен 29 16:02 icons.screen0-1264x728.rc
-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:50 icons.screen0-1264x732.rc
-rw-r--r-- 1 Stephen Stephen  911 сен 27 23:20 icons.screen0-1264x733.rc
-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:49 icons.screen0-1264x746.rc
-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:12 icons.screen0-1264x747.rc
-rw-r--r-- 1 Stephen Stephen   86 сен 27 11:09 icons.screen0-587x384.rc
-rw-r--r-- 1 Stephen Stephen  165 сен 27 21:14 icons.screen0-624x464.rc
-rwxr-xr-x 1 Stephen Stephen   24 июн 16 11:35 icons.screen0-958x752.rc
-rw-r--r-- 1 Stephen Stephen 1683 окт  1 10:42 icons.screen.latest.rc

This one is highlighted with bold green:

-rwxr-xr-x 1 Stephen Stephen   24 июн 16 11:35 icons.screen0-958x752.rc

By the way, how can I make the desktop directory writable again? I currently have a problem with automatic deletion of a torrent file in Transmission after adding a torrent.

Last edited by Stephen (2023-10-01 03:31:02)

Offline

#8 2023-10-01 09:35:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Desktop icons are moved after reboot

Odd. Why isn't the latest.rc file a link for you? Here is my listing:

 ls -l ~/.config/xfce4/desktop/
total 28
-rw-r--r-- 1 toz toz 140 Sep 13 21:44 icons.screen0-1008x716.rc
-rw-r--r-- 1 toz toz 140 Sep 13 21:44 icons.screen0-1008x752.rc
-rw-r--r-- 1 toz toz 144 Sep 26 11:30 icons.screen0-1904x1014.rc
-rw-r--r-- 1 toz toz 144 Sep 30 18:25 icons.screen0-1904x1016.rc
-rw-r--r-- 1 toz toz 144 Sep 21 14:29 icons.screen0-1904x1026.rc
-rw-r--r-- 1 toz toz 144 Sep 20 22:02 icons.screen0-1904x1028.rc
-rw-r--r-- 1 toz toz 144 Sep 26 11:30 icons.screen0-1904x1064.rc
lrwxrwxrwx 1 toz toz  58 Sep 30 18:25 icons.screen.latest.rc -> /home/toz/.config/xfce4/desktop/icons.screen0-1904x1016.rc

I would suggest deleting all of the files in that directory before you log in and let them be re-created. The icons.screen.latest.rc file should then be a link to the currently used file.

By the way, how can I make the desktop directory writable again? I currently have a problem with automatic deletion of a torrent file in Transmission after adding a torrent.

Same command, but use paramter "-i":

sudo chattr -i ~/.config/xfce4/desktop/

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#9 2023-10-01 09:38:10

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

I would suggest deleting all of the files in that directory before you log in and let them be re-created. The icons.screen.latest.rc file should then be a link to the currently used file.

Could you please explain me how to do it step by step? I'm new to MX Linux.

Offline

#10 2023-10-01 13:38:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,032

Re: Desktop icons are moved after reboot

Try this:

1. Restart your computer
2. Before you log in, press Ctrl+Alt+F2 to get to a text console and log in using your username and password.
3. At the command prompt, type the following:

cd .config/xfce4/desktop
rm *.rc
exit

...and go back to your gui login screen (either Ctrl+Alt+F1 or Ctrl+Alt+F6).

4. Log in to Xfce. Arrange the icons the way you like.
5. Open a terminal window and:

cd .config/xfce4/
sudo chattr +i desktop

6. Log out and back in again to test.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#11 2023-10-01 13:57:32

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

3. At the command prompt, type the following:

cd .config/xfce4/desktop
rm *.rc

I've tried that, it gives out an error: "Operation not allowed".

Last edited by Stephen (2023-10-01 13:57:53)

Offline

#12 2023-12-22 17:36:43

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

up

Offline

#13 2023-12-22 17:38:00

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

Even the latest OS version update didn't help with that problem.

Offline

#14 2023-12-22 18:33:34

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 415

Re: Desktop icons are moved after reboot

It sound like a permission issue. What does

ls -l

give you. You should see all the directories in your /home and permissions.


Siduction
Debian Sid
Xfce 4.18

Offline

#15 2023-12-23 05:23:51

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

This is what refers to the desktop directory:

drwxrwxr-x 5 Stephen Stephen 4096

Offline

#16 2023-12-23 11:49:30

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 415

Re: Desktop icons are moved after reboot

Your either not in your home directory or you have a big problem. Where are your Downloads, Pictures, Desktop etc folders?


Siduction
Debian Sid
Xfce 4.18

Offline

#17 2023-12-23 13:52:52

Stephen
Member
Registered: 2023-09-28
Posts: 12

Re: Desktop icons are moved after reboot

$ ls -l
total 36
-rw-r--r-- 1 Stephen Stephen Sep 190 27 21:21 20-intel.conf.202309212159
-rw-r--r-- 1 Stephen Stephen 0 Nov 29 15:33 badsectors.txt
drwxr-xr-x 2 Stephen Stephen 4096 Sep 27 10:58 Video
drwxr-xr-x 3 Stephen Stephen 4096 Dec 8 23:21 Documents
drwxr-xr-x 2 Stephen Stephen 4096 Sep 28 22:49 Downloads
drwxr-xr-x 3 Stephen Stephen 4096 Oct 1 22:59 Images
drwxr-xr-x 2 Stephen Stephen 4096 Sep 27 10:58 Music
drwxr-xr-x 2 Stephen Stephen 4096 Sep 27 10:58 Public
drwxrwxr-x 5 Stephen Stephen 4096 Dec 23 22:51 'Desktop'
drwxr-xr-x 2 Stephen Stephen 4096 Sep 27 10:58 Templates

Offline

Board footer

Powered by FluxBB