sugar-toolkit-gtk3/shell/Process.py

18 lines
343 B
Python
Raw Normal View History

2006-07-12 17:21:22 +02:00
import logging
2006-07-12 14:02:29 +02:00
import gobject
class Process:
2006-07-12 17:21:22 +02:00
"""Object representing one of the session processes"""
2006-07-12 14:02:29 +02:00
def __init__(self, command):
self._command = command
def get_name(self):
return self._command
def start(self):
args = self._command.split()
2006-07-12 22:17:57 +02:00
flags = gobject.SPAWN_SEARCH_PATH
result = gobject.spawn_async(args, flags=flags)