flathub / com.vscodium.codium

https://flathub.org/apps/details/com.vscodium.codium
97 stars 21 forks source link

Allow use of linuxbrew via environmental variable #375

Open czhang03 opened 1 month ago

czhang03 commented 1 month ago

Hi, linuxbrew is a popular way to install SDK, and is recommended by the UBlue team: https://github.com/ublue-os/bluefin/issues/576

The binary of linuxbrew is installed in /home/linuxbrew/.linuxbrew/bin, and the environment can be loaded via the command /home/linuxbrew/.linuxbrew/bin/brew shellenv. I was wondering if there is a way to introduce an environment variable like ENABLE_BREW_SDK to execute the command /home/linuxbrew/.linuxbrew/bin/brew shellenv prior to launching codium.

The implementation should be very similar to the implementation of FLATPAK_ENABLE_SDK_EXT, but I cannot find where that functionality is implemented in the source code.

noonsleeper commented 1 month ago

Hi @czhang03,

The implementation should be very similar to the implementation of FLATPAK_ENABLE_SDK_EXT, but I cannot find where that functionality is implemented in the source code.

If you like to add that functionality then you will need to go to https://github.com/flathub-infra/ide-flatpak-wrapper.git is this the main startup script use by this package to start codium

https://github.com/flathub/com.vscodium.codium/blob/27d1b63964845a7c772e987dba9fc74d7c593ca8/com.vscodium.codium.yaml#L162-L164