My old mother on ubuntu gnome lose .desktop files

0

I live far away from my mother. When her old laptop on windows XP died, I replaced it by a minicomputer with ubuntu gnome (14.04) that I remotely administer (ssh, x11vnc and rsync for backups). As old windows xp users, she has many icons on her desktop. I have created some launchers (firefox.desktop, thunderbird.desktop, Word.desktop (for libre office writer)).

Regularly, she calls me because one of these launchers has disappeared. Each time I find the missing launcher in the trash folder. Probably a mistake of my mother.

How would you protect these launchers while leaving write permission to Desktop folder ? Should I write a cron to monitor these mistakes ?

One idea is to put the sticky bit on the desktop folder and change the owner of the folder and .desktop files to root. Are there nasty side effects to be expected ?

Jean-Francois Bocquet

Posted 2018-01-31T09:19:04.940

Reputation: 3

It may not be the answer you're looking for, but maybe you could teach her how to restore the file from trash? – gronostaj – 2018-01-31T09:23:19.620

Yes, but she is 80 and she has already difficulties with thunderbird. I try to teach her how to watch pictures, but she often get lost. – Jean-Francois Bocquet – 2018-01-31T14:14:45.237

Answers

0

chmod is not an assistant: if there are write permissions to the directory, then even chmod 000 will not save from deletion. You can help chattr +i on the file. Then even the root will not be able to delete the file until it removes this attribute (chattr -i).

Alex_Krug

Posted 2018-01-31T09:19:04.940

Reputation: 175

Excellent ! I had never heard about this chattr. The only drawback is that gnome draws a small lock on the icon. Do you know how to avoid this lock ? – Jean-Francois Bocquet – 2018-02-01T09:30:35.953

and this is such a big problem? try to explain to your mother, so as not to pay attention (although it can be difficult - I myself know) – Alex_Krug – 2018-02-02T15:00:06.777