SHOW:
|
|
- or go back to the newest paste.
| 1 | - | self.client = gconf.client_get_default() |
| 1 | + | self.client = gconf.client_get_default() |
| 2 | - | self.api_path = self.client.get_string('/apps/ControlPanel/Statusnet/api_path')
|
| 2 | + | self.api_path = self.client.get_string('/apps/ControlPanel/Statusnet/api_path')
|
| 3 | - | if not self.api_path: |
| 3 | + | if not self.api_path: |
| 4 | - | ret = subprocess.call(["/usr/bin/invoker", "--type=e", "-s", "/opt/statusnet-meego/statusnet-login.py"]) |
| 4 | + | ret = subprocess.call(["/usr/bin/invoker", "--type=e", "-s", "/opt/statusnet-meego/statusnet-login.py"]) |
| 5 | - | if ret == 2: |
| 5 | + | if ret == 2: |
| 6 | - | self.api_path = self.client.get_string('/apps/ControlPanel/Statusnet/api_path')
|
| 6 | + | self.api_path = self.client.get_string('/apps/ControlPanel/Statusnet/api_path')
|
| 7 | - | else: |
| 7 | + | else: |
| 8 | - | # Quit if the user just closed the configuration applet without setting up login details |
| 8 | + | # Quit if the user just closed the configuration applet without setting up login details |
| 9 | - | return |
| 9 | + | return |