~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to scripts/dogtail-detect-session

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        running = False
51
51
        return running
52
52
 
53
 
if GNOME() or KDE():
 
53
def JustSomeApps():
 
54
    """
 
55
    "Is at least one accessibility-enabled application running?"
 
56
    """
 
57
    assert focus.desktop
 
58
    assert focus.desktop.children
 
59
 
 
60
if GNOME() or KDE() or JustSomeApps():
54
61
        sys.exit()
55
62
else: 
56
63
        sys.exit(1)