-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Allowing data and the lite binary to reside in different directories #49
Comments
Pretty straightforward to add the required build time machinery for this with a definition in |
Right, that'd probably work too - I don't use C too often so I usually don't think of using definitions and macros :) |
I don't want to encourage a decoupling of the binary and data folder -- that is, both should be kept in sync with one another and always remain a pair. I appreciate this makes |
I just bumped into this trying to setup packaging for Arch Linux as well. We can patch like Alpine did, but please reconsider this. If you want to allow for the use case of user-local software that's fine, but that's not how most Linux distributions work nor haw many of us want our software. Please try to limit Linux distribution to work the way macOS or Windows ecosystems work. |
@rxi: it seems that if one want both the coupling of Lua files to the executable and to adhere to Unix custom the bundling suggested by @sherief in #82 should be worth of consideration. For how to technically realize it see my comment (also in subsequent comments how to link statically SDL2). In this way there will be a master copy of A problem that I see, even with the current un-bundled distribution, is with syncing updates with customization, but I have no suggestions to offer at this time. |
@rxi another option is Zero Install, which is concisely described as:
A short introduction of But this requires that users download |
I feel like all of this is kind of solving a problem that doesn't exist - many people on many different systems are able to run lite as it is. It isn't hard to have system wide sdl2 insyalled. It isn't necessary to "install" anywhere beyond whacking it onto your path, which can be done with a symlink or editing your path directly. It isn't hard to build from source, and the source is pretty friendly to modification in the case where package maintainers want to be ideologically correct about where some lua scripts go. 3k stars implies this is much more widely used than any of the authors other projects, and maybe concessions to the public will end up being made but it's still a little minimal editor made mostly by a single author, originally for their own use. Approaching it as if it's the same thing as vscode with the same mass consumption standard practice goals seems a bit backward. I should be clear that I think a define for where the data scripts go would be good to see and easy to implement, and would keep package maintainers happy. I've got a feeling all this exe bundling stuff is more or less irrelevant though. |
@1bardesign That is too dismissive a treatment of the actually root of this issue report. OS packages are how many people get their software. There is a simple to fix BLOCKING issue that distros are having to monkey patch around.
That's a very real problem and there is no easy mechanism provided to separate the two. It is patchable, but being able to put something in |
As I finished with before:
|
I'd be happy with a mechanism to keep user specific settings in a user-specific path. Ideally under
I can certainly see the appeal of keeping the binary and data files together. In trying to learn more about what the project's goals are I see in the
I think there is a tradeoff between By the way, I'm the only human user on my system and I still prefer to use a package manager to manage my software. I use a lot of different packages and it would be a real pain if I had to maintain all of that software in my home folder manually. This is especially useful since I often use different local users on my machine to keep my work and personal files separate. I'd rather not have to keep two separate copies of the editor, the data files, and my user settings.
If I'm installing something in |
I just found #112 which is actually what I'm after. I've gone ahead and patched my copy to do what is suggested in that thread and load a configuration file from the user's home folder. This might be something we could accomplish with a plugin and therefore not require any changes to the editor itself. |
I am a packager and today I tried to create an openSUSE package for lite. I had to give up precisely because of its lack of adherence to the FHS and this is sad because it is a really great editor with no real alternatives in terms of both lightness, beauty and simplicity and I'd love to spread it to the openSUSE community 😃 |
Hello,
right now lite assumes that the lite binary will be right next to the data directory - but that might not hold true in practice. E.g. linux distros would generally prefer having lite in
/usr/bin
while having the data in/usr/share/lite
. It'd be nice if lite had a toggle to set that during build time - that could go hand-in-hand with #48 , e.g. by adding a "@datadir@" directive that's then replaced during compiletime instead of using the EXEDIR. I currently just patch around this for Alpine Linux.The text was updated successfully, but these errors were encountered: