~dobey/software-center/train-magic

« back to all changes in this revision

Viewing changes to bin/software-center-sso-gtk

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2013-09-11 19:21:00 UTC
  • mfrom: (3315.1.1 system-sso)
  • Revision ID: tarmac-20130911192100-8wo1e411avwlu1kk
Remove the old gtk+ based SSO UI, and rely on the system library and UI.
Use the "Ubuntu One" token for authenticating to the server now.

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
 
import sys
25
 
sys.path.insert(0, "/usr/share/software-center")
26
 
 
27
 
from softwarecenter.sso import gui
28
 
from ubuntu_sso.utils.ui import parse_args
29
 
 
30
 
from dbus.mainloop.glib import DBusGMainLoop
31
 
DBusGMainLoop(set_as_default=True)
32
 
 
33
 
 
34
 
if __name__ == "__main__":
35
 
    args = parse_args()
36
 
    gui.run(**dict(args._get_kwargs()))