After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566610 - Duplicate lines warnings by xrdb plugin
Duplicate lines warnings by xrdb plugin
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
2.25.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2009-01-05 11:33 UTC by Bastien Nocera
Modified: 2009-01-05 12:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsd-xrdb-duplicate-warnings.patch (446 bytes, patch)
2009-01-05 11:34 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2009-01-05 11:33:24 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=478606
Those lines would show up in the ~/.xsession-errors
xrdb:  "*Label.background" on line 220 overrides entry on line 150
xrdb:  "*Label.foreground" on line 232 overrides entry on line 151
xrdb:  "*Label.background" on line 220 overrides entry on line 150
xrdb:  "*Label.foreground" on line 232 overrides entry on line 151
xrdb:  "*Label.background" on line 220 overrides entry on line 150
xrdb:  "*Label.foreground" on line 232 overrides entry on line 151

and

xrdb:  "*Text.background" on line 226 overrides entry on line 191
xrdb:  "*Text.foreground" on line 238 overrides entry on line 192
xrdb:  "*Text.background" on line 226 overrides entry on line 191
xrdb:  "*Text.foreground" on line 238 overrides entry on line 192
xrdb:  "*Text.background" on line 226 overrides entry on line 191
xrdb:  "*Text.foreground" on line 238 overrides entry on line 192

There are some duplicate entries in Tk.ad and Xaw.ad. The easiest is to avoid the warnings altogether using the "-quiet" command-line option ("-quiet  This option indicates that warning about duplicate entries should not be displayed.").

Patch below.
Comment 1 Bastien Nocera 2009-01-05 11:34:13 UTC
Created attachment 125774 [details] [review]
gsd-xrdb-duplicate-warnings.patch
Comment 2 Bastien Nocera 2009-01-05 12:29:16 UTC
Fixed in trunk.

2009-01-05  Bastien Nocera  <hadess@hadess.net>

        * plugins/xrdb/gsd-xrdb-manager.c (apply_settings): Quiet xrdb
        when there are duplicate rules in the .ad files (Closes: #566610)