GNOME Bugzilla – Bug 694134
g-s-d sets an inotify watch on ~/.local/share/sounds, which normally does not exist.. and causes polling
Last modified: 2013-05-17 14:13:21 UTC
Created attachment 236685 [details] [review] Make the sound theme directory if it does not exist yet technically this is a workaround for a bug in glib.. but that's been open since 2008 with no real fix in sight. g-s-d puts a watch on ~/.local/share/sounds, which normally does not exist. glib will then start polling the disk every 4 seconds to see if it ever appears... causing unneeded disk activity and power consumption. I've attached a simple patch to just make the directory that we're about to watch for this.. and that solves the whole issue for g-s-d.
Fixed to apply to master, and backported along with simplification code to gnome-3-6.
Created attachment 236936 [details] [review] 0001-sound-Make-directories-with-mode-0700-not-0600.patch [PATCH] sound: Make directories with mode 0700, not 0600 Otherwise spectacular failure occurs if the sound plugin wins the race to make ~/.local and it ends up with 0600, which nothing can write to.
See also https://bugzilla.gnome.org/show_bug.cgi?id=694269
Review of attachment 236936 [details] [review]: ++
http://git.gnome.org/browse/gnome-settings-daemon/commit/?id=b97a62f56d7f3187c9ab516c8f3c2aa6785665c6
Can you push b97a62f56d7f3187c9ab516c8f3c2aa6785665c6 to gnome-3-6 too please?
Done.