Fix open shell in OSx

This commit is contained in:
Mauricio Baeza 2020-03-10 11:50:13 -06:00
parent 4ae2a1ff01
commit fcef6c4fb0
4 changed files with 13 additions and 2 deletions

View File

@ -732,6 +732,9 @@ class LODocument(object):
return path_pdf
# ~ If location="document" Then
# ~ sp = ThisComponent.getScriptProvider()
class FormControlBase(object):
EVENTS = {

Binary file not shown.

View File

@ -249,9 +249,14 @@ class Controllers(object):
app.open_file(cmd)
else:
if app.DESKTOP == 'gnome':
cmd = 'gnome-terminal -- {}'.format(self.path_python)
cmd = 'gnome-terminal -- {}'
else:
cmd = 'exec {}'.format(self.path_python)
if app.IS_MAC:
cmd = 'open "{}"'
else:
cmd = 'exec "{}"'
cmd = cmd.format(self.path_python)
app.run(cmd)
return

View File

@ -732,6 +732,9 @@ class LODocument(object):
return path_pdf
# ~ If location="document" Then
# ~ sp = ThisComponent.getScriptProvider()
class FormControlBase(object):
EVENTS = {