Skip to content

Fix sandboxed environments like flatpak #221

@WebFreak001

Description

@WebFreak001

Sandboxed environments often have a chroot set, creating weird bugs where the users are sure they have D installed, but it can't access dmd nor the import directories. An example for this is the Mint Software store which installs vscode from Flathub.

code-d should detect if it's sandboxed and is missing core components like stdlibs and then take appropriate actions.

if env variable FLATPAK_SANDBOX_DIR is set + missing stdlibs -> download sources from github and tell user that the installation is sandboxed on installation.

I don't think missing executables of dmd and dub can be fixed here except for maybe downloading precompiled ldc binaries on linux?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions