Cleaning user preferences, keeping user data
Par Ploum, dimanche 24 février 2008 à 17:49 :: gnome, hacker vaillant :: #184 :: rss
Dear GNOME Desktop, I appreciate my new GNOME equation t-shirt and the fact that you care about my choices and preferences. But, could you please care a bit more about what actually is important for me ?
The problem : I like to keep as near-default configuration for my Gnome desktop. Every 6 months, I simply format my root partition and reinstall Ubuntu with all the packages I need (it's even quicker than a dist-upgrade). Of course, I keep my /home partition.
And this /home partition is now a complete mess, filled with hidden .folders from every application I ever tried. Because I've sometimes played with experimental software, those .folders are filled with craps. Go straight for an example : I cannot use Compiz. I've tried to delete all related hidden folders and files, the compiz configuration is still unusable thanks to some well hidden breakage, a probable inheritance of the Beryl times. I'm not a fan of Compiz but it makes me sad to know that there's something ugly somewhere on my computer.
Unfortunately, this problem is deeper than previously thought. Sometimes, on a fresh install I have bugs not reproducible anywhere else. Sometimes, the maintener of a package feel the need to push a new sensible default. Also, how the hell can we do a correct backup without too much overhead ?
The cause : In fact, the cause is simple. For too long, we (software developers) have happily mixed user preferences and user data.
This can even become absurd. If you carefully backup your .evolution folder, you won't have any contacts in your address book when you will restore. You can manually check, all the informations are there, in the folder. But Evolution needs a magical-cryptic number. And this number is stored deeply inside the .gconf folder... Right, this is a reported bug but the fact that this kind of thing is even allowed to be a possibility is a breakage in itself.
A possible solution : I think that it's time to clean a bit the desktop. There should be two kind of files in the home folder : user data and preferences. Each application developer should carefully design its application to put thing in one category or in the other.
The concept is fairly easy : if you can't afford to loose it, it's an user data. If a usable default exist, it's a preference. If I restore or reinstall my desktop, I don't mind if I must re-set my wallpaper, re-choose my favourite gnome applets,re-set the nautilus spatial mode and home-is-desktop options. But I highly care to get my files back, my songs statistics and playlists in Rhythmbox, my emails/contacts/calendars in evolution, my tomboy notes, my bookmarks, my highscores, my rss feeds and my IM contacts. Those are data ! Yes, just like my plain old files. But knowing that I have french spell checking enabled in Gedit and last.fm plugin enabled in Rhythmbox is not.
When you see that your $HOME contains folders called .gnome, .gnome2, .gnome2-private, .gconf, .gconfd, it makes sense to say that things are not so well in shape there. Not to mention applications with their own .folder but that manage to still use gconf.
Having this data/preferences duality would allow to quickly reset default preferences, to backup easily stuffs that matter. I want to be able to synchronise all my data with another computer that uses a different internet connection, a different theme, a different screen resolution.
I hope you understand what I mean, it's not rocket science, isn't it ? Such an improvment would be really great with my new green tshirt.
Love,
Ploum
Update : Dear beloved desktop, Fredo pointed me to the corresponding Freedesktop specification. Should I report bug against each application that doesn't follow fd.o ?
- Send to friend -




Commentaires
1. Le dimanche 24 février 2008 à 18:57, par sgh
2. Le dimanche 24 février 2008 à 19:12, par gus :: site
3. Le dimanche 24 février 2008 à 19:41, par Arthur
4. Le dimanche 24 février 2008 à 20:01, par san
5. Le dimanche 24 février 2008 à 20:03, par Piotr
6. Le dimanche 24 février 2008 à 20:17, par Graham :: site
7. Le dimanche 24 février 2008 à 20:19, par John Drinkwater :: site
8. Le dimanche 24 février 2008 à 20:31, par Fredo :: site
9. Le dimanche 24 février 2008 à 20:44, par Ploum :: site
10. Le dimanche 24 février 2008 à 23:50, par dave
11. Le lundi 25 février 2008 à 08:56, par k1000
12. Le lundi 25 février 2008 à 09:11, par Geoff
13. Le lundi 25 février 2008 à 23:05, par Chris Cunningham :: site
14. Le mardi 26 février 2008 à 15:28, par kezar
15. Le mardi 26 février 2008 à 15:36, par Ploum :: site
16. Le mardi 26 février 2008 à 17:57, par kezar
17. Le mercredi 27 février 2008 à 02:26, par antistress :: site
18. Le jeudi 28 février 2008 à 16:41, par Gnome Desktop
19. Le vendredi 29 février 2008 à 01:58, par antistress :: site
20. Le samedi 1 mars 2008 à 02:41, par Yann Dìnendal :: site
21. Le samedi 1 mars 2008 à 15:16, par antistress :: site
22. Le lundi 3 mars 2008 à 15:16, par antistress :: site
23. Le mardi 4 mars 2008 à 02:28, par antistress :: site
24. Le mardi 4 mars 2008 à 23:15, par antistress :: site
25. Le lundi 10 mars 2008 à 02:19, par antistress :: site
26. Le mardi 11 mars 2008 à 14:33, par antistress :: site
27. Le mardi 11 mars 2008 à 23:27, par antistress :: site
28. Le mardi 11 mars 2008 à 23:39, par Ploum :: site
29. Le mercredi 12 mars 2008 à 00:54, par antistress :: site
30. Le mercredi 12 mars 2008 à 20:23, par Ploum :: site
31. Le samedi 15 mars 2008 à 15:54, par antistress :: site
32. Le dimanche 16 mars 2008 à 03:58, par antistress :: site
33. Le dimanche 16 mars 2008 à 20:19, par antistress :: site
34. Le dimanche 16 mars 2008 à 23:58, par antistress :: site
35. Le lundi 17 mars 2008 à 21:15, par antistress :: site
36. Le mardi 18 mars 2008 à 00:11, par antistress :: site
37. Le mercredi 19 mars 2008 à 19:35, par Ploum :: site
38. Le samedi 22 mars 2008 à 17:48, par antistress :: site
39. Le vendredi 28 mars 2008 à 01:32, par antistress :: site
40. Le mardi 1 avril 2008 à 12:31, par antistress :: site
41. Le lundi 7 avril 2008 à 10:04, par Ploum :: site
42. Le mardi 8 avril 2008 à 01:36, par antistress :: site
43. Le samedi 24 mai 2008 à 01:23, par antistress :: site
44. Le mercredi 11 juin 2008 à 01:15, par antistress :: site
45. Le jeudi 11 septembre 2008 à 18:31, par antistress :: site
46. Le vendredi 21 novembre 2008 à 00:33, par antistress :: site
47. Le samedi 13 décembre 2008 à 18:46, par antistress :: site
48. Le samedi 17 janvier 2009 à 20:29, par antistress :: site
49. Le dimanche 18 janvier 2009 à 09:52, par antistress :: site
50. Le samedi 31 janvier 2009 à 07:25, par antistress :: site
51. Le lundi 16 février 2009 à 14:37, par antistress :: site
52. Le mercredi 25 février 2009 à 00:53, par antistress :: site
53. Le dimanche 1 mars 2009 à 19:04, par antistress :: site
54. Le dimanche 1 mars 2009 à 19:07, par antistress :: site
55. Le dimanche 1 mars 2009 à 19:13, par antistress :: site
56. Le mercredi 11 mars 2009 à 19:21, par antistress :: site
57. Le mercredi 11 mars 2009 à 19:32, par antistress :: site
58. Le lundi 23 mars 2009 à 07:04, par frozen
59. Le mardi 26 mai 2009 à 17:37, par antistress :: site
60. Le lundi 15 juin 2009 à 18:51, par antistress :: site
61. Le vendredi 7 août 2009 à 10:42, par antistress :: site
Ajouter un commentaire
Poster un commentaire n'est pas une obligation. Rappelez-vous de tourner 7 fois votre clavier dans votre bouche avant de poster (oui, il m'a fallu des années de streching pour y arriver).
Si votre commentaire a été effacé, c'est sans doute pour une de ces raisons.