18 lines
343 B
Python
18 lines
343 B
Python
import logging
|
|
|
|
import gobject
|
|
|
|
class Process:
|
|
"""Object representing one of the session processes"""
|
|
|
|
def __init__(self, command):
|
|
self._command = command
|
|
|
|
def get_name(self):
|
|
return self._command
|
|
|
|
def start(self):
|
|
args = self._command.split()
|
|
flags = gobject.SPAWN_SEARCH_PATH
|
|
result = gobject.spawn_async(args, flags=flags)
|