diff options
author | Dan Winship <dwinship@redhat.com> | 2007-10-04 19:59:23 (GMT) |
---|---|---|
committer | Dan Winship <dwinship@redhat.com> | 2007-10-04 19:59:23 (GMT) |
commit | 2bcbde6e441ee5ab5743f6b45b5f85e85bbb644f (patch) | |
tree | 84a47bc8cb25119134c91db7787a7127acb08ce8 /sugar/util.py | |
parent | 5b0566803273cbc45f50a834b08aec73ede26ac5 (diff) |
Add bundle removing methods/signals to the activity registry, and use them
Diffstat (limited to 'sugar/util.py')
-rw-r--r-- | sugar/util.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sugar/util.py b/sugar/util.py index 5f01848..2780427 100644 --- a/sugar/util.py +++ b/sugar/util.py @@ -106,6 +106,20 @@ def write_service(name, bin, path): service_cp.write(fileobject) fileobject.close() +def delete_service(name, path): + """Delete a D-BUS service definition file + + Deletes a D-BUS service file previously + created by write_service(). + + name -- D-BUS service name, must be a valid + filename/D-BUS name + path -- directory containing the name.service + file + """ + + os.remove(os.path.join(path, name + '.service')) + def set_proc_title(title): """Sets the process title so ps and top show more descriptive names. This does not modify argv[0] |