New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lite Only Opens In Its Directory #76
Comments
Update: After some more testing, it's clear that it's from the initial lua string in the main.c file. Here's the standard output:
I tried modifying the string, however, the program seems to silently crash whenever I change it. Any reason why? |
Hi, thank you for your investigations. Thank to your message I understood the problem. The following change is needed in " HOME = os.getenv('HOME')\n"
#endif
" local prefix = EXEFILE:match(\"^(.+)[/\\\\]bin[/\\\\][^/\\\\]+$\")\n"
- " dofile((prefix and prefix .. '/share/lite-xl' or 'data') .. '/core/start.lua')\n"
+ " local exedir = EXEFILE:match(\"^(.+)[/\\\\][^/\\\\]+$\")\n"
+ " dofile((prefix and prefix .. '/share/lite-xl' or exedir .. '/data') .. '/core/start.lua')\n"
" core = require('core')\n"
" core.init()\n"
" core.run()\n" but, since a .c file is modified a re-compilation is needed. I going to include the fix and publish a new hotfix release today I home. |
Huh, that's interesting. I updated the main.c and compiled it myself, however, the program doesn't seem to be launching anymore.
I was able to compile and run before the change. I was also able to do that when adding Edit: Other than adding the SDL wrap, I also added community written header files to replace the ones exclusive to Linux, such as dirent.h and unistd.h |
Please check again the master branch. I have fixed some stuff and tested extensively on Windows. I am preparing a release. |
Should work now with the new release. Waiting to have some feedback before closing the issue. |
I am pretty much positive that this bug was already solver with 1.16.2 and 1.16.3 is already out. |
Oh, I apologize. I should've totally tested it, but I was busy at the time and I forgot to go back to the email. I just downloaded the latest version, and when running it now, I get this error message written in error.txt, regardless of the current directory:
I'd look into it further but that's all the time I have for now. Thank you for helping out. I really appreciate it! Edit: Latest verison = 1.16.3 |
Thank you for testing and for reporting this problem. Actually the error you see is unrelated to the problem you reported in this issue. Looking at the stack traceback it doesn't make a lot of sense to me unless you modified some of the lua files bundled with lite-xl. I would suggest making a new test by deleting any previous install of lite-xl and remove any plugin you may have in: %USERPROFILE%/.config/lite-xl/plugins |
Oh, you're absolutely on the mark on that one. I updated Lite by replacing the files, but I suppose that left some of the old files untouched and that could've messed with the application. Thank you for your help! I can't make promises but I'll certainly try to fit the time to make contributions back, you totally deserve any support you can get. |
A bit difficult to describe it well in the title, but essentially I'm not able to open Lite from the command prompt outside of where the data directory exists. When I installed the source, even though it contained a different data folder, I was indeed able to open Lite, even though it didn't use the data folder which came with the source. Anywhere else, however, the program would simply not launch. No errors would be displayed, no warnings, no logfile from as far as I can tell. From as far as I can tell, this is due to core.init, but I've not been able to fix the problem as of now. Any suggestions?
Operating System: Windows
The text was updated successfully, but these errors were encountered: