Skip to content
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

Add a shell-wrapper file #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

blt-r
Copy link
Contributor

@blt-r blt-r commented Nov 12, 2023

In helix, there's no integrated terminal in the editor. So it isn't possible to have a shell session in the environment set up by the wrapper. In this PR, I added a shell-wrapper (maybe another name would be better) executable into /app/bin that just sets up the environment and launches bash. Users will be able to flatpak run --command=shell-wrapper com.helix_editor.Helix, and have the packages isolated, so that they can, for example, pip install packages.

To do that, I separated the logic of setting up the environment into wrapper.sh which is installed into /app/lib/ide-flatpak-wrapper/wrapper.sh and is sourced from editor.sh and shell_wrapper.sh. I also added the -Dshell_wrapper_name option to set the name of the shell_wrapper.sh executable (defaults to shell-wrapper).

@blt-r blt-r force-pushed the shell_wrapper branch 2 times, most recently from 85f8ee3 to cec48c4 Compare November 12, 2023 19:20
@CleoMenezesJr
Copy link

That's great!! Would help a lot to Neovim too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants