Run Linux non-system outside the sandbox.

Because we can't set it suid on install.
This commit is contained in:
Tom Rothamel
2024-07-29 23:34:11 -04:00
parent 82bbab49b6
commit c6a29f79bc
2 changed files with 16 additions and 8 deletions
+8 -4
View File
@@ -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 -4
View File
@@ -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: