Run Linux non-system outside the sandbox.
Because we can't set it suid on install.
This commit is contained in:
@@ -8,14 +8,14 @@ class Editor(renpy.editor.Editor):
|
||||
|
||||
has_projects = True
|
||||
|
||||
system = __file__.endswith(" (System).edit.py")
|
||||
|
||||
def get_code(self):
|
||||
"""
|
||||
Returns the path to the code executable.
|
||||
"""
|
||||
|
||||
system = __file__.endswith(" (System).edit.py")
|
||||
|
||||
if system:
|
||||
if self.system:
|
||||
|
||||
if "RENPY_VSCODE" in os.environ:
|
||||
return os.environ["RENPY_VSCODE"]
|
||||
@@ -65,7 +65,11 @@ class Editor(renpy.editor.Editor):
|
||||
self.args.reverse()
|
||||
|
||||
code = self.get_code()
|
||||
args = [ code, "-g" ] + self.args
|
||||
if self.system or not renpy.linux:
|
||||
args = [ code, "-g" ] + self.args
|
||||
else:
|
||||
args = [ code, "--no-sandbox", "-g" ] + self.args
|
||||
|
||||
args = [ renpy.exports.fsencode(i) for i in args ]
|
||||
|
||||
if renpy.windows:
|
||||
|
||||
@@ -8,14 +8,14 @@ class Editor(renpy.editor.Editor):
|
||||
|
||||
has_projects = True
|
||||
|
||||
system = __file__.endswith(" (System).edit.py")
|
||||
|
||||
def get_code(self):
|
||||
"""
|
||||
Returns the path to the code executable.
|
||||
"""
|
||||
|
||||
system = __file__.endswith(" (System).edit.py")
|
||||
|
||||
if system:
|
||||
if self.system:
|
||||
|
||||
if "RENPY_VSCODE" in os.environ:
|
||||
return os.environ["RENPY_VSCODE"]
|
||||
@@ -65,7 +65,11 @@ class Editor(renpy.editor.Editor):
|
||||
self.args.reverse()
|
||||
|
||||
code = self.get_code()
|
||||
args = [ code, "-g" ] + self.args
|
||||
if self.system or not renpy.linux:
|
||||
args = [ code, "-g" ] + self.args
|
||||
else:
|
||||
args = [ code, "--no-sandbox", "-g" ] + self.args
|
||||
|
||||
args = [ renpy.exports.fsencode(i) for i in args ]
|
||||
|
||||
if renpy.windows:
|
||||
|
||||
Reference in New Issue
Block a user