gpm:moved into main for pisi20

This commit is contained in:
2015-07-22 16:03:49 +03:00
parent f97ee723c7
commit 165eda8d59
5 changed files with 163 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
serviceType = "local"
serviceDesc = _({"en": "Console Mouse Daemon",
"tr": "Konsol Fare Servisi"})
from comar.service import *
@synchronized
def start():
args = []
args.append("-m %s" % config.get("MOUSEDEV", "/dev/input/mice"))
args.append("-t %s" % config.get("MOUSE", "imps2"))
if "RESPONSIVENESS" in config:
args.append("-r %s " % config.get("RESPONSIVENESS"))
if "REPEAT_TYPE" in config:
args.append("-R%s " % config.get("REPEAT_TYPE"))
args.append(config.get("APPEND", ""))
startService(command="/usr/sbin/gpm",
args=" ".join(args),
donotify=True)
@synchronized
def stop():
stopService(pidfile="/run/gpm.pid",
donotify=True)
def status():
return isServiceRunning("/run/gpm.pid")