computer-janitor opens two tasks when starting (should use policykit instead of gksu)

Bug #350286 reported by Martin Mai
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
computer-janitor (Ubuntu)
Fix Released
Low
Barry Warsaw
Nominated for Karmic by Սահակ
Nominated for Lucid by Barry Warsaw

Bug Description

Binary package hint: computer-janitor

I am using Ubuntu 9.04 Beta. When I start "Computer Janitor" (System -> Administration -> Computer Janitor), it opens two tasks in the window list applet named "Starting Computer Janitor". After a second, one of them becomes the program window while the other one stays (without window). Even if I close the program window, the second "Starting Computer Janitor" tasks stays (it stays for about 10 seconds at all).

(I attached a screencapture showing the issue)

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: computer-janitor 1.12.1-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SourcePackage: computer-janitor
Uname: Linux 2.6.28-11-generic x86_64

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :
Changed in computer-janitor:
assignee: nobody → liw
status: New → Confirmed
Revision history for this message
to be removed (liw) wrote :

Hmm. I'm not seeing this, while running computer-janitor under kvm (and my desktop that I could run jaunty on is out of service). Martin, are you running with compiz or other 3D acceleration and compositing?

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Compiz has no influence on the behaviour and I have no other compositing managers installed. This is reproducible for me with 2 different hardware configurations. It happens with a jaunty beta live CD, a daily live CD (28.03.09) and an installed and fully updated Jaunty.

Revision history for this message
Brian Murray (brian-murray) wrote :

I was unable to recreate this using computer-janitor version 1.12.1-0ubuntu1 from Jaunty Jackalope.

Changed in computer-janitor (Ubuntu):
importance: Undecided → Low
Revision history for this message
Սահակ (petrosyan) wrote :

I am able to reproduce this bug with today's (April 10th, 2009) Ubuntu 9.04 Live CD

Revision history for this message
to be removed (liw) wrote :

I have still not been able to reproduce this, even on real hardware. I suspect it is computer-janitor-gtk doing something bad when starting up that interferes with the interaction with the window manager, which prevents the window manager from realizing that the window is already up. I have no idea what, though.

Revision history for this message
Սահակ (petrosyan) wrote :

This bug is still reproducible on 64 bit daily ( 20090414.2 ) Ubuntu 9.04 LiveCD

Revision history for this message
to be removed (liw) wrote :

I can now reproduce it as well, using today's version of the live cd (amd64). I have no idea what causes this, yet, and it's not important enough to fix for jaunty, but I'll look into this for karmic.

Revision history for this message
to be removed (liw) wrote :

One of the windows seems to be coming from gksu. That probably means this will be fixed once Computer Janitor starts using something else to do priviledged stuff.

Changed in computer-janitor (Ubuntu):
status: Confirmed → Triaged
summary: - computer-janitor opens two tasks when starting
+ computer-janitor opens two tasks when starting (should use policykit
+ instead of gksu)
to be removed (liw)
Changed in computer-janitor (Ubuntu):
assignee: Lars Wirzenius (liw) → nobody
Revision history for this message
Barry Warsaw (barry) wrote :

This should be fixed with CJ 2.0, which uses dbus and policykit, so doesn't require gksu.

https://edge.launchpad.net/~barry/+archive/python

Changed in computer-janitor (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
milestone: none → ubuntu-10.04-beta-2
status: Triaged → Fix Committed
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

I tried it just now with the ppa you named, but the problem is still the same with computer-janitor version 2.0 from that ppa.

Changed in computer-janitor (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
Barry Warsaw (barry) wrote :

@Martin: I am unable to confirm this with CJ 2.0. When I start CJ 2.0, I only ever see one entry. At first it says "Starting Computer Janitor", then pretty quickly turns into "Computer Janitor". Because no gksu is required to start up CJ 2.0, I can't think of where the second window comes from.

Changed in computer-janitor (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Now I know what's going on. As I said, I am using the launcher in "System -> Administration", but this launcher is created by computer-janitor-gtk (not computer-janitor) and contains "gksudo" in the command.

Executing "computer-janitor" in the terminal works as you said: No second task respectively a second task for some milli seconds.

Revision history for this message
Barry Warsaw (barry) wrote :

Hi Martin, if you're getting gksudo when launching from the System menu, then CJ 2.0 (from my PPA) must not be installed quite right. It no longer needs or uses gksudo.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Since computer-janitor is now version 2.0.2 in Ubuntu 10.10, I am closing this bug. Works fine now.

Changed in computer-janitor (Ubuntu):
status: Incomplete → Fix Released
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.