You might have to go poke around the launcher .rpy files (like editor.rpy) and be ready to get your hands really dirty.vlint wrote:Another issue I have with JEdit is that links to it from within visual novels (such as the Ren'Py demo) don't open it. I suspect it is because my Java installation isn't in my path, however, since I use Linux and I installed Java the legal way (that way you have to do the path manually, and I haven't figured out how to do that on Linux, yet). So, it would be nice if there were a way to make it recognize this.
copy-pasta what I have:
Code: Select all
# This file contains logic for detecting an editor, and for selecting
# the default editor.
init:
python hide:
import os
import os.path
import sys
if not config.editor:
editor = os.path.normpath(config.renpy_base + "/jedit/jedit.jar")
editor = renpy.shell_escape(editor)
if sys.platform == 'win32':
config.editor = 'javaw.exe -jar "' + editor + '" -reuseview "%(filename)s" +line:%(line)d "%(otherfiles)s"'
config.editor_transient = 'javaw.exe -jar "' + editor + '" -newplainview "%(filename)s" +line:%(line)d "%(otherfiles)s"'
else:
config.editor = 'java -jar "' + editor + '" -reuseview "%(filename)s" +line:%(line)d "%(otherfiles)s"'
config.editor_transient = 'java -jar "' + editor + '" -newplainview "%(filename)s" +line:%(line)d "%(otherfiles)s"'
if config.editor:
os.environ['RENPY_EDITOR'] = config.editor
if config.editor_transient:
os.environ['RENPY_EDITOR_TRANSIENT'] = config.editor_transient
now, if you've rigged up your VN project to where your launcher file launches your VN directly (skipping the launcher itself), that might be the problem. dunno how to go about that, but I know that's possible via some file renaming (IIRC).