← Back to team overview

compiz team mailing list archive

[Bug 820328] [NEW] Unity depends on gdm as a desktop manager and gives empty screen in ldm

 

Public bug reported:

Under Natty, the file /etc/X11/Xsession.d/65compiz_profile-on-session
reads as follows:

--------------------
# This file is sourced by Xsession(5), not executed.
# Select unity profile if we are in the default session.
# The default profile is used otherwise.

if [ "x$GDMSESSION" = "xgnome" ]; then
    COMPIZ_CONFIG_PROFILE="ubuntu"
    export COMPIZ_CONFIG_PROFILE
fi
----------------

The purpose of this script is to enable the Unity plugin in compiz in
the default session (where there is no gnome-shell or -panel) so that
the Unity shell is activated. There are two problems with this script:

1) The first one being that it depends on the environment variable
$GDMSESSION being set while /etc/X11/Xsession runs. This leads to
problems on LTSP clients where LDM instead of GDM is used so that there
is no variable $GDMSESSION. (This problem could be solved in the ldm
package by adding a script to /usr/share/ldm/rc.d but this wouldn't
solve the problem for other desktop managers.) In Oneiric, the
environment $DESKTOP_SESSION is used instead of $GDMSESSION but I am not
sure whether this should be set by all desktop managers.

2) The second problem with this script is that enabling the Unity plugin
depends on the session being named "gnome". This means that one cannot
rename the session in /usr/share/xsessions without breaking Unity or one
cannot easily install a second Unity session in this directory.

A solution would be to enable the Unity plugin while gnome-session is
processing the file /usr/share/gnome-session/sessions/ubuntu.session,
although I don't know how to hook a script in a gnome-session session
file.

Marc

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: compiz gdm ldm ltsp unity

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/820328

Title:
  Unity depends on gdm as a desktop manager and gives empty screen in
  ldm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/820328/+subscriptions


Follow ups

References