Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on June 9, 2024

Sorry, but no. Environment variables are being cleaned intentionally.

from proot-distro.

ronnac avatar ronnac commented on June 9, 2024

I suggest to create a -p option (p for preserve) for "proot-distro login" so that users can decide if they want to allow environment preservation. The su command has this option, and I motivated my request. Could you give me a hint as to why you prefer not to implement this?

from proot-distro.

 avatar commented on June 9, 2024

Could you give me a hint as to why you prefer not to implement this?

a. proot-distro tends to provide a clean Linux distribution environment, free from Android. (yet it still create mounts for using termux-api). It is not a launch pad for Linux commands in Termux.
b. Some environment variables must and will be overwritten or unset: PATH, LD_PRELOAD, LD_LIBRARY_PATH and others, potentially leading to clash between Android environment and GNU/Linux.
c. On the first setup it configures all necessary environment variables: https://github.com/termux/proot-distro/blob/master/proot-distro.sh#L309-L325

That's btw the reason why I prefer to use su for login, instead of running shell directly.

from proot-distro.

 avatar commented on June 9, 2024

Fixing #40 will be enough for overriding default login command and allow to pass custom environment variables.

from proot-distro.

ronnac avatar ronnac commented on June 9, 2024

I haven't figured out how to do this, because some of my current environment variables contain spaces.

from proot-distro.

ronnac avatar ronnac commented on June 9, 2024

Can you suggest a "launch pad for Linux commands" that would allow me to call java from the host?

from proot-distro.

Related Issues (20)

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.