Compiz doesn't undo profile change after processing upgrade

Reported by Fred on 2013-09-27
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ryan Tandy
compiz (Ubuntu)
Ryan Tandy
gnome-panel (Ubuntu)

Bug Description

gnome-session-flashback (Flashback (No Effects)) which runs with Metacity works fine.
gnome-session-flashback (Flashback) which runs with Compiz starts Unity instead.

It works very well with Metacity, but if you use Compiz, then you get a conflict with Unity. That is; you get both Unity and Gnome Panel running at the same time.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: gnome-session-flashback 1:3.6.2-0ubuntu15
ProcVersionSignature: Ubuntu 3.11.0-8.15-generic 3.11.1
Uname: Linux 3.11.0-8-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Sat Sep 28 01:18:08 2013
GsettingsChanges: b'org.gnome.gnome-panel.run-dialog' b'history' b"['compiz', 'ubuntu-bug fontconfig', 'update-manager -c -d']"
InstallationDate: Installed on 2011-10-21 (707 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: gnome-panel
UpgradeStatus: Upgraded to saucy on 2013-09-16 (11 days ago)

Related branches

Fred (eldmannen+launchpad) wrote :
Doug McMahon (mc3man) wrote :

Have seen this for some time. To get the gnome panel then one has to disable the unityshell plugin in ccsm.
After doing that all is usually ok except if that user then decides to log into a ubuntu session. Then it's possible that the unityshell plugin will be improperly disabled

Changed in compiz (Ubuntu):
status: New → Confirmed
Felix Moreno (felix-justdust) wrote :

In ubuntu 13.10 it works fine, no the mix of unity and gnome-panel like in 13.04 or 12.10...

Fred (eldmannen+launchpad) wrote :

I am running Ubuntu 13.10 and it does not work fine.
I tried your suggested solution and it did not work.

Compiz does not gets loaded, and I have to open a terminal and type;
compiz --replace
To get it to work:

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-panel (Ubuntu):
status: New → Confirmed
Ryan Tandy (rtandy) wrote :

For me, this only ever happens on the first login with a new user account. If I log into Unity first, leave it alone for a few seconds to finish initializing, and then log in to gnome-flashback, it works every time. Happened in Raring, too.

tags: added: raring
Fred (eldmannen+launchpad) wrote :

Ryan, but what about on the guest account?

On Fri, Oct 18, 2013 at 12:59 PM, Fred <email address hidden> wrote:
> Ryan, but what about on the guest account?

A new guest account is created each time you launch a guest session,
so you're right, it will always be affected. I posted that information
to help anyone trying to triage this bug: I think the place to look is
in the scripts that do the first-time-only initialization for Unity.

Hello, the bug is still present in ubuntu 13.10 updated.

It seems that is fixed for the first login of a created user using first unity and then gnome-panel.

But if you create a user and directly log in using gnome-fallback with effects the mixed unity and gnome-panel appears, like said Ryan probably is the first time only scripts...

To fix it still what i used works:

Just log off and log in using gnome-fallback without ffects, and the log off and use it with efects and the desktop is ready to work, but i should be fixed in ubuntu 13.10...

Felix Moreno (felix-justdust) wrote :

Or the othr option is like Ryan sais, start with unity and then log off and change to gnome flashback with effects.

summary: - gnome-session-flashback with Compiz launches Unity
+ gnome-session-flashback with Compiz launches Unity if you create a user
+ and log in for the first time directly with gnome-flashback

Got it. The bug is in Compiz.

When Compiz starts up it looks for upgrade scripts in /usr/share/compizconfig/upgrades and runs each of them. For each upgrade, ccsProcessUpgrade (compizconfig/libcompizconfig/src/main.c:4737) sets the Compiz profile to the one mentioned in the filename ("unity" for all the scripts shipped in compiz-gnome); I guess that is so that the affected plugins are made active. But, it doesn't set the profile back afterwards!

So, the workaround for a new user account is:

mkdir -p ~/.config/compiz-1/compizconfig
for file in /usr/share/compizconfig/upgrades/*.upgrade; do basename $f; done > ~/.config/compiz-1/compizconfig/done_upgrades

Then Compiz won't run the upgrade scripts (since we told it they've already been done), and we avoid setting the profile to unity.

Compiz devs, would you please consider trying to fix this bug? If I have time I'll try to submit a patch, but it won't be soon...

Changed in gnome-panel (Ubuntu):
status: Confirmed → Invalid
summary: - gnome-session-flashback with Compiz launches Unity if you create a user
- and log in for the first time directly with gnome-flashback
+ Compiz doesn't undo profile change after processing upgrade
Ryan Tandy (rtandy) wrote :

I've been poking at this a bit. This change makes the bug go away when using the ini backend, but not gsettings. I'm not sure whether there's a separate bug in the gsettings backend, or whether this change is incorrect. I'll put some more time into it when I can. Hoping to get it fixed for trusty.

tags: added: patch
Ryan Tandy (rtandy) wrote :

There are some test packages for trusty in ppa:rtandy/lp1232299

Does anyone else affected have a trusty system they could test that on? For me, my own session and the guest session both work well, under Flashback (Compiz) and Unity.

I experienced a Unity crash one time, but now I can't reproduce it, so I don't know whether my changes caused it.

tags: added: trusty
removed: third-party-packages

It's estimated to have a moderate impact on a large portion of Ubuntu users.

Changed in compiz (Ubuntu):
importance: Undecided → High
Changed in gnome-panel (Ubuntu):
importance: Undecided → High
Changed in compiz (Ubuntu):
status: Confirmed → Triaged
Changed in compiz:
status: New → Triaged
importance: Undecided → High
Changed in compiz:
assignee: nobody → Ryan Tandy (rtandy)
Changed in compiz (Ubuntu):
assignee: nobody → Ryan Tandy (rtandy)
Changed in compiz:
milestone: none →
Changed in compiz:
status: Triaged → In Progress
Changed in compiz (Ubuntu):
status: Triaged → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers