/usr/share/checkbox/scripts/check_unity is in checkbox 0.13.7.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/python
import sys
import dbus
from subprocess import call
def main():
# Connect to the session
bus = dbus.SessionBus()
unity = bus.get_object("org.freedesktop.DBus", "/com/canonical/Unity")
if unity.NameHasOwner("com.canonical.Unity"):
retcode = call(["/usr/lib/unity/autopilot.py"])
return retcode
else:
print "Unity is not running"
return 1
if __name__ == "__main__":
sys.exit(main())
|