~mvo/software-center/fix-seperator-crash

« back to all changes in this revision

Viewing changes to software-center-sso-gtk

  • Committer: Michael Vogt
  • Date: 2012-07-06 13:58:54 UTC
  • mfrom: (3045.4.15 winged-migration)
  • Revision ID: michael.vogt@ubuntu.com-20120706135854-e7op2m4rklgn14lz
mergedĀ lp:~nataliabidart/software-center/winged-migration

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
#
 
4
# Copyright 2012 Canonical Ltd.
 
5
#
 
6
# This program is free software: you can redistribute it and/or modify it
 
7
# under the terms of the GNU General Public License version 3, as published
 
8
# by the Free Software Foundation.
 
9
#
 
10
# This program is distributed in the hope that it will be useful, but
 
11
# WITHOUT ANY WARRANTY; without even the implied warranties of
 
12
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
13
# PURPOSE.  See the GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License along
 
16
# with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
#
 
18
 
 
19
"""Start the SSO GTK+ UI."""
 
20
 
 
21
# Invalid name "software-center-sso-gtk", pylint: disable=C0103
 
22
# Access to a protected member, pylint: disable=W0212
 
23
 
 
24
from softwarecenter.sso import gui
 
25
from ubuntu_sso.utils.ui import parse_args
 
26
 
 
27
from dbus.mainloop.glib import DBusGMainLoop
 
28
DBusGMainLoop(set_as_default=True)
 
29
 
 
30
 
 
31
if __name__ == "__main__":
 
32
    args = parse_args()
 
33
    gui.run(**dict(args._get_kwargs()))