quickly add-indicator does not create good code

Bug #956382 reported by Sean Davis
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
quickly (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Running quickly add-indicator on a new quickly project creates bad code. See log below.

sean@sean-Latitude-E6400:~/Desktop/pywoot$ quickly add indicator
sean@sean-Latitude-E6400:~/Desktop/pywoot$ quickly run

Traceback (most recent call last):
  File "bin/pywoot", line 33, in <module>
    pywoot.main()
  File "/home/sean/Desktop/pywoot/pywoot/__init__.py", line 33, in main
    window = PywootWindow.PywootWindow()
  File "/home/sean/Desktop/pywoot/pywoot_lib/Window.py", line 35, in __new__
    new_object.finish_initializing(builder)
  File "/home/sean/Desktop/pywoot/pywoot/PywootWindow.py", line 24, in finish_initializing
    super(PywootWindow, self).finish_initializing(builder)
  File "/home/sean/Desktop/pywoot/pywoot_lib/Window.py", line 75, in finish_initializing
    self.indicator = indicator.new_application_indicator(self)
  File "/home/sean/Desktop/pywoot/pywoot/indicator.py", line 52, in new_application_indicator
    ind = Indicator(window)
  File "/home/sean/Desktop/pywoot/pywoot/indicator.py", line 20, in __init__
    self.indicator = AppIndicator3.Indicator('pywoot', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
TypeError: GObject.__init__() takes exactly 0 arguments (3 given)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: quickly 12.03-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Thu Mar 15 15:57:03 2012
InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Beta amd64 (20120228)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
QuicklyDataPath: /usr/share/quickly
QuicklyTemplates:
 /usr/share/quickly/templates/ubuntu-cli
 /usr/share/quickly/templates/ubuntu-pygame
 /usr/share/quickly/templates/ubuntu-application
 /usr/share/quickly/templates/ubuntu-flash-game
QuicklyTemplatesDirectories: /usr/share/quickly/templates/
SourcePackage: quickly
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sean Davis (bluesabre) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in quickly (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick Lemaire (koukin) wrote :

The command quickly add indicator creates a fle indicator.py where the indicator is created.
self.indicator = AppIndicator3.Indicator('projectname', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
change this line to:
self.indicator = AppIndicator3.Indicator.new('projectname', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
and it will work

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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