[orca] Sanity check that we have a desktop to get before we attempt to get its apps.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Sanity check that we have a desktop to get before we attempt to get its apps.
- Date: Tue, 13 Mar 2012 16:27:10 +0000 (UTC)
commit 7397a5fb69798572681354c4f23f5a1883b2d258
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Mar 13 12:25:19 2012 -0400
Sanity check that we have a desktop to get before we attempt to get its apps.
src/orca/orca.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index e2f2f9a..8f7be1a 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -136,7 +136,7 @@ class Options(argparse.Namespace):
if self.showHelp:
self._printMessageAndExit(parser.print_help)
- if self.listApps:
+ if self.listApps and self.desktopRunning:
apps = filter(lambda x: x != None, pyatspi.Registry.getDesktop(0))
names = [app.name for app in apps]
message = "\n".join(names)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]