remove output

This commit is contained in:
chrys 2017-09-12 01:11:47 +02:00
parent 4da95a1b8b
commit 994700568e

View File

@ -20,14 +20,11 @@ class command():
def getDescription(self): def getDescription(self):
return _('export the current fenrir clipboard to X clipboard') return _('export the current fenrir clipboard to X clipboard')
def run(self): def run(self):
print('drin')
_thread.start_new_thread(self._threadRun , ()) _thread.start_new_thread(self._threadRun , ())
def _threadRun(self): def _threadRun(self):
print('jo')
try: try:
currClipboard = self.env['commandBuffer']['currClipboard'] currClipboard = self.env['commandBuffer']['currClipboard']
print(currClipboard)
if currClipboard < 0: if currClipboard < 0:
self.env['runtime']['outputManager'].presentText(_('clipboard empty'), interrupt=True) self.env['runtime']['outputManager'].presentText(_('clipboard empty'), interrupt=True)
@ -53,7 +50,7 @@ class command():
#stderr = stderr.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8') #stderr = stderr.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8')
#stdout = stdout.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8') #stdout = stdout.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8')
if stderr != '': if stderr != '':
self.env['runtime']['outputManager'].presentText(stdout , soundIcon='', interrupt=False) self.env['runtime']['outputManager'].presentText(stderr , soundIcon='', interrupt=False)
else: else:
self.env['runtime']['outputManager'].presentText('export clipboard', soundIcon='PasteClipboardOnScreen', interrupt=True) self.env['runtime']['outputManager'].presentText('export clipboard', soundIcon='PasteClipboardOnScreen', interrupt=True)
except Exception as e: except Exception as e: