Replies: 3 comments 2 replies
-
I suggest this is the better option. Upon building, it fails to check the screenshot:
I use fp-build to build the manifest, which almost simulates building on Flathub. |
Beta Was this translation helpful? Give feedback.
-
Hey, So I don't know if you know this but, every flatpak app is a container and unable to access the environment of the HOST system. We should inform users that they will not b able to run command from terminal if installed through Flatpak. A solution for this will be using containers from com.visualstudio.code.tools.* as they are used by flathub package of visual studio code. Also consider snap because it doesn't have this limitation. |
Beta Was this translation helpful? Give feedback.
-
An initial version can be downloaded from here: https://flatpak.lite-xl.com/com.lite_xl.LiteXL.flatpakref This will add our temporary repo to your flatpak install, so you'll get updates to Lite XL as we change things around. I won't publish this on Flathub yet, as we have a few important issues to address first. Keep in mind that this is a very early release, and many things are not working properly. |
Beta Was this translation helpful? Give feedback.
-
This is the continuation of #441.
I've been investigating with the help of @redtide how to create a Flatpak release and this is the result:
To publish on Flathub we have to follow the instructions here https://github.com/flathub/flathub/wiki/App-Submission
We must also follow the App Requirements https://github.com/flathub/flathub/wiki/App-Requirements
With the changes from #459 we should be respecting the requirements.
Build instructions:
Clone this gist: https://gist.github.com/209615e2f95e00761c9d58c186d5ccea.git
Install the runtime:
flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08
Build:
flatpak-builder --force-clean --user --install build-dir org.lite_xl.lite_xl.yml
Run:
flatpak run org.lite_xl.lite_xl
Note: don't let
lite-xl
open the directory after the build, it might hang because of some symlinks to/run
created byflatpak-builder
. I'll open an issue about this later.Problems found:
The scale is different from the normal version. It looks likeWith the update to the 21.08 freedesktop SDK and runtime, which brings SDL 2.0.16, this doesn't happen anymore.SDL_GetDisplayDPI
returns different values.USERDIR
(set viaXDG_CONFIG_HOME
) is located at~/.var/app/org.lite_xl.lite_xl/config
.To solve the second problem we have two alternatives:
FLATPAK_ID
env variable is set, then ignore whatXDG_CONFIG_HOME
and instead useHOST_XDG_CONFIG_HOME
orHOME/.config
According to the Requirements, we should follow the first alternative:
Do not attempt to retain configs from non-flatpak installations. While possible it is recommended that flatpak installs stay self-contained.
We should also decide what other permissions to give the Flatpak.
EDIT: Updated build manifest to use the freedesktop 21.08 SDK and runtime. This fixes the scale problem.
Beta Was this translation helpful? Give feedback.
All reactions