Comments (6)
Sorry, but no. Environment variables are being cleaned intentionally.
from proot-distro.
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.
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.
Fixing #40 will be enough for overriding default login command and allow to pass custom environment variables.
from proot-distro.
I haven't figured out how to do this, because some of my current environment variables contain spaces.
from proot-distro.
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)
- [Bug]: Can't Set Locale HOT 3
- [Question]: HOT 2
- [Distribution]: openKylin 1.0.1 Request HOT 2
- [Bug]: Error: the rootfs of distribution 'ubuntu' has unexpected structure (no /etc directory). Make sure that variable TARBALL_STRIP_OPT specified in distribution plug-in is correct. HOT 16
- [Distribution]: Devuan GNU+Linux HOT 4
- debian11 How to install HOT 1
- Proot distro unable to write and some have no locales unless default C locale. HOT 1
- [Bug]: proot error HOT 1
- [Feature]: proot-distro --user-chroot or chroot-distro HOT 2
- [Feature]: Keep "/etc/environment" HOT 3
- [Bug]: HOT 2
- [Bug]: Ubuntu 23.04 is not LTS and its life ended HOT 2
- [Distribution]: ubuntu-oldlts (Ubuntu 22.04 LTS) HOT 2
- [Bug]: Alpine Linux: doas refuse to give user permission, even though reading Alpine wiki's "Setting up a new user" very carefully. HOT 2
- Permissions on bind mount of external SD card in proot-distro HOT 1
- [Bug]: Script: incorrect name of ubuntu release in distro-plugins/ubuntu-lts.sh and distro-plugins/ubuntu-oldlts.sh
- [Feature]: Using Termux Vulkan-Loaer with PRoot-Dsitro HOT 7
- Consider faking or disabling certain sysfs mountpoints HOT 1
- [Bug]: can't install arm distributions on termux arm64 HOT 2
- Apache2 not start After upgrade or fresh install PHP 8.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proot-distro.