Skip to content

Commit

Permalink
shell: try to work around LITE_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Apr 27, 2024
1 parent 2b4c4a4 commit f99809f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
var Module = {
arguments: ['/home/web_user/welcome.md'],
preRun: [function () {
// yes, we're actually overriding the MACOS_RESOURCES envvar because LITE_PREFIX is not supported
// in older version of Lite XL. This is ironically the most stable way to achieve this.
ENV.MACOS_RESOURCES = '/usr/share/lite-xl';
FS.chdir('/home/web_user');
// workaround older lite-xl not supporting LITE_PREFIX
ENV.APPIMAGE = 'true'
ENV.OWD = '/home/web_user'
FS.writeFile('/home/web_user/welcome.md',
'# Welcome to Lite XL!\n\n' +
'This is an instance of Lite XL running on your browser using **JavaScript** and **WASM**.\n\n' +
Expand Down

0 comments on commit f99809f

Please sign in to comment.