aboutsummaryrefslogtreecommitdiff
path: root/src/bundle_open.m
AgeCommit message (Collapse)Author
2021-12-15Takes kivutar's changes into account, cleaning things up slightly.Adam Harrison
2021-08-19Fix macOS build issue with recent commitFrancesco Abbate
Add objc_args in meson when compiling to pass C defines also to bundle_open.m. Default "bundle" option to false to have by default a unix-like build and install. In the run-local script always expect that "bundle" option is to false to have a unix-like install. In the build-package script pass the -Dbundle=true option when building on macos. When setting the resouce path revert to original method using [[NSBundle mainBundle] resourcePath] to have the real resource path when the bundle option will be activated. With the recent commit the function set_macos_bundle_resources will be called only if the "bundle" option is activate and is not used in unix-like mode.
2021-08-19Conditionally disable macos bundle functionFrancesco Abbate
2021-06-03Enable lite-xl to be started from a symlink to the deployed binary (#249)Ferdinand Prantl
Use resolved executablePath instead of resourcePath to allow lanching the lite-xl binary via a symlink, like typically done by Homebrew: /usr/local/bin/lite-xl -> /Applications/lite-xl.app/Contents/MacOS/lite-xl The resourcePath returns /usr/local in this case instead of /Applications/lite-xl.app/Contents/Resources, which makes later access to the resource files fail. Resolving the symlink to the executable and then the relative path to the expected directory Resources is a workaround for starting the application from both the launcher directly and the command line via the symlink.
2021-04-21Add momentum scroll for macosFrancesco Abbate
Taken from @mathewmariani lite-macos
2021-04-19Fix missing header for macosFrancesco Abbate
2021-04-19Remove bundle_open.h fileFrancesco Abbate
2021-04-18Implement correctly loading from macos bundle resourcesFrancesco Abbate
2021-04-18Testing functions to open files from bundleFrancesco Abbate