Skip to content

flathub/com.jetbrains.IntelliJ-IDEA-Community

Repository files navigation

IntelliJ IDEA unofficial Flatpak wrapper

This version is running inside a container and is therefore not able to access SDKs on your host system!

How to run commands on the host system

To execute commands on the host system, run IntelliJ IDEA with:

$ flatpak run --talk-name=org.freedesktop.Flatpak com.jetbrains.IntelliJ-IDEA-Community

And this inside the sandbox:

$ flatpak-spawn --host <COMMAND>

This allows applications to launch arbitrary commands on the host. This must not be used unless absolutely necessary and when no existing solutions using Flatpak or portals exist. This is are considered a security issue, use at your risk.

To make it permanent

$ flatpak override --user < --talk-name=org.freedesktop.Flatpak com.jetbrains.IntelliJ-IDEA-Community

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

Flatpak standard SDK

This Flatpak provides a standard development environment (gcc, python, etc.). To see what's available:

$ flatpak run --command=sh com.jetbrains.IntelliJ-IDEA-Community
$ ls /usr/bin (shared runtime)
$ ls /app/bin (bundled with this flatpak)

Running GUI app from IDE

By default, java uses X11 but not exist inside Flatpak there is only Wayland. You need to switch to Wayland toolkit for your app. Go to Edit Configuration, Modify options and enable Add VM Options. On the new box named VM Options add:

-Dawt.toolkit.name=WLToolkit

Flatpak extensions

To get support for additional languages, you have to install SDK extensions, e.g.

$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk
$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk25
$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk17
$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk11
$ flatpak install flathub org.freedesktop.Sdk.Extension.openjdk8

To enable selected extensions, set FLATPAK_ENABLE_SDK_EXT environment variable to a comma-separated list of extension names (name is ID portion after the last dot):

$ FLATPAK_ENABLE_SDK_EXT=openjdk,xxx flatpak run com.jetbrains.IntelliJ-IDEA-Community

To make this persistent, set the variable via Flatpak override:

$ flatpak override --user com.jetbrains.IntelliJ-IDEA-Community --env=FLATPAK_ENABLE_SDK_EXT="dotnet,golang"

You can use to find others

$ flatpak search <TEXT>

About

Resources

Stars

16 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors