GithubHelp home page GithubHelp logo

lctrs / jetbrains-flatpak-wrapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flathub-infra/ide-flatpak-wrapper

4.0 4.0 1.0 14 KB

Wrapper for running VS Code in flatpak sandbox

License: MIT License

Meson 41.34% Shell 58.66%

jetbrains-flatpak-wrapper's People

Contributors

gasinvein avatar lctrs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

job79

jetbrains-flatpak-wrapper's Issues

How to define environment variables within jetbrains-flatpak-wrapper?

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.

Configure "host-spawn" or similar as default shell in the IDEs

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 SettingsToolsTerminalShell 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.

Instruction for local shell don't work

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`:
  1. There is a space between -- and flatpak-spawn which makes the command fail
  2. Even when that is fixed the terminal does not appear. I tried running the command in native terminal and this is the error I get /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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.