GNOME Bugzilla – Bug 314774
[patch] xrdb called needlessly multiple times
Last modified: 2008-11-01 00:06:51 UTC
Please describe the problem: From John's bug http://blogs.sun.com/roller/page/jmr/20050826 we can see that xrdb is called multiple times when gnome-settings-daemon is started. Steps to reproduce: this happens at every login Actual results: Expected results: Does this happen every time? yes Other information: It seems that the style_set_cb callback, which ultimately spawn the xrdb command, is called multiple times. This happens because the style_set_cb callback is connected to the GtkWidget signal "style-set" which receive multiple "style-set" signals (8 or 9) initially for the same theme. One solution to avoid these multiple calls would be to monitor the gtk theme Xsettings property as gtk does (via "notify::gtk-theme-name")
Created attachment 51514 [details] [review] patch a patch which fixes the multiple call problem using Xsettings instead of the "style-set" signal.
confirming because of the patch.
Patch is committed, although we are still running xrdb -merge in 3 different places. Something needs to be done to just be run once (or none?)
Two of those 3 are with -nocpp, which is really really fast. The other will be disabled by default when bug 557807 is fixed. Closing bug.