Ticket #830: trac_830.diff
File trac_830.diff, 2.0 KB (added by lfaraone, 12 years ago) |
---|
-
athena/bin/bugme/bugme
25 25 self.firstWarn = 90 26 26 self.warnInterval = 30 27 27 self.annoyInterval = 10 28 # Hard time limit; user will be killed after this time 29 self.killTime = self.timeLimit * 1.5 28 30 # (foreground, background) 29 31 self.colors = ('black', 'white') 30 32 try: … … 73 75 self.nextWarn = now + self.warnInterval 74 76 self.nag(((self.timeLimit - elapsed) / 60, 75 77 (self.timeLimit - elapsed) % 60)) 78 if options.kioskMode and elapsed >= self.killTime: 79 # The user has outstayed their welcome, nuke their session 80 print "Quitting." 81 sys.exit(0) 82 76 83 # It's a little odd to put this here, but it doesn't work in 77 84 # __init__; see comments in Trac #386 78 85 self.timerWindow.set_keep_above(True) … … 116 123 parser.add_option("--debug", 117 124 action="store_true", dest="debugMode", default=False, 118 125 help="Enable debug mode (time limit of 2 minutes)") 126 parser.add_option("--fatal", 127 action="store_true", dest="kioskMode", default=False, 128 help="Kill the user session after 1.5 times the time limit.") 119 129 (options, args) = parser.parse_args() 120 130 if len(args) < 1: 121 131 parser.error("'progname' is required") -
debathena/debathena/kiosk/xinitrc
68 68 cp "$chrome" "$profdir/chrome/userChrome.css" || exit 1 69 69 70 70 # Launch firefox. 71 firefox 71 if [ "$(machtype -q)" = "quickstation" ] && [ -x /usr/bin/bugme ]; then 72 bugme --debug --fatal firefox 73 else 74 firefox 75 fi 72 76 77 73 78 # Clean up. 74 79 rm -rf .mozilla