gdm

GDM Init/Default runs xrdb trying to merge a directory instead of a file

Bug #247691 reported by Jim McQuillan
2
Affects Status Importance Assigned to Milestone
gdm
New
Undecided
Unassigned
gdm (Ubuntu)
Confirmed
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gdm

The Init script for GDM: /etc/gdm/Init/Default is looking to see if /etc/X11/Xresources is a file. If it is, it merges the entries in that file into the X server's resources.

Here's the problem code from /etc/gdm/Init/Default:

--------------------------------------------------------------
sysresources=/etc/X11/Xresources

# merge in defaults
if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi
--------------------------------------------------------------

The problem is, /etc/X11/Xresources is a directory. It contains a file called 'x11-common'.

So, the system Xresources never get merged.

The GDM Init/Default script should be modified to merge any files found in that directory, but I think the directory should be named with a '.d' suffix. IE, it should be: /etc/X11/Xresources.d

Then, the x11-common package should be modified to put it's "x11-common" resource file into the new /etc/X11/Xresources.d directory.

This would be similar to the way /etc/X11/Xsession.d is handled but we don't need to "source" the files, we need to "merge" them with xrdb.

I found this problem on Hardy, here's the output of lsb_release -rd:

root@tulip:/etc/X11# lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

The version of the gdm package is: 2.20.6-0ubuntu2

Also, I checked on an Edgy machine and the same problem existed there as well.

Changed in gdm:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is still with the new gdm in karmic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.