lctrs / jetbrains-flatpak-wrapper Goto Github PK
View Code? Open in Web Editor NEWThis project forked from flathub-infra/ide-flatpak-wrapper
Wrapper for running VS Code in flatpak sandbox
License: MIT License
This project forked from flathub-infra/ide-flatpak-wrapper
Wrapper for running VS Code in flatpak sandbox
License: MIT License
I'm trying to use this wrapper with IDEA Ultimate
. zypak wrapper
is giving some trouble with some plugins, so I will end up using a custom idea.properties
file to add/override some of the settings.
IDEA
is able to override those values by making use of different locations: https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage
Problem is that I can't find a way to declare environment variables here:
- name: jetbrains-flatpak-wrapper
buildsystem: meson
config-opts:
- -Deditor_binary=/app/extra/IDEA-U/bin/idea.sh
- -Deditor_title=IntelliJ IDEA Ultimate
- -Dprogram_name=idea
sources:
- type: dir
path: jetbrains-flatpak-wrapper
...so I can just do IDEA_PROPERTIES=/app/bin/idea.properties
.
I can probably get around using --env
with finish-args
, but I guess it would be great if there was a key for just that, or if config-opts
could accept as well --env
.
The shell currently defaults to a sandboxed plain sh
, which is not what most developers want.
It would be cool if it could default to a host-shell (bash, in most cases). I've configured this manually using host-spawn and it works really great, since I've done this, I couldn't find any of the annoying bugs that were there before.
More concretely, I've changed in Settings
→ Tools
→ Terminal
→ Shell Path
:
/path/to/host-spawn bash
I guess this could also be done by a script inside this wrapper. The binary for host-spawn could be included as well.
This would be a great improvement that I think a lot of people could benefit of.
In the first_run.txt file it gives instructions for how to permanently set the Intellij terminal to be the local filesystem.
To make the Integrated Terminal automatically use the host system's shell,
you can modify `Settings > Tools > Terminal > Shell path` to `/usr/bin/env -- flatpak-spawn --host bash`:
/usr/bin/env: unrecognized option '--flatpak-spawn'
and if I delete the -- I get /usr/bin/env: ‘flatpak-spawn’: No such file or directory
I looked at the help for /usr/bin/env and can't figure out what you are trying to do.
Then I tried to run the one off command. I reset the default environment to bash, opened a terminal, and entered the command in the first_run.txt file flatpak-spawn --host bash
It errors
Portal call failed: Failed to start command: Failed to change to directory “/app/share/jetbrains-flatpak-wrapper” (No such file or directory)
Can you please update the instructions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.