Comments (7)
That sounds very straightforward, because it is quite easy to extract it from /etc/passwd
somewhere in login-inner
and execute it instead of bash
; and, at the same time, very complicated, because there should be a recovery mechanism if the shell is broken.
from nix-on-droid.
/system/bin/sh
should be considered a valid fallback I think or try /bin/sh
at least, but this should not be to complicated.
from nix-on-droid.
The point is, I cannot clearly formulate a criteria to determine whether the user shell is broken or not. Once we have it, yeah, it's probably not that complicated.
from nix-on-droid.
Why bother with this question, when we have a failsafe version? I don't really know, what the failsafe one really is, but maybe the user could repair his installation this way?
from nix-on-droid.
Because the failsafe version drops one outside the nix-managed environment, and fixing it does not sound that simple when your only way to get into it is broken.
So, if I use, for example, xonsh
as your shell, make a syntax error in my .xonshrc
, and that .xonshrc
is managed with Nix, fixing it from the recovery env would require detangling some broken symlinks that make no sense to get to either that .xonshrc
or login-inner
.
from nix-on-droid.
Ah I get your point, that's indeed tricky.. It's like we should add a flag somewhere, that the app should use /bin/sh
instead of the configured shell. But I don't know, how this should be done..
from nix-on-droid.
Closed via #57
from nix-on-droid.
Related Issues (20)
- accidentally nix profile removed nix-on-droid HOT 5
- Font change HOT 3
- Grab a wakelock for the duration of the bootstrap HOT 2
- upgrade to 24.05 break everything HOT 4
- nix command HOT 1
- huh(home manger error HOT 4
- Terminal shows random declare commands then loads zsh HOT 1
- unable to download home manager
- [RFE] Package OpenKeychain agents
- Abysmal performance on basic commands involving nixpkgs HOT 13
- #LordRusty23 💉👌💦📡🤩👍 HOT 3
- Audited Resource, Min severity: Info HOT 2
- Nim HOT 1
- ❤️
- Home-Manager Version Mismatch Error with Flakes HOT 1
- 24.05 HOT 7
- "nix-env --help" is not working HOT 4
- README is outdated with 24.05 ? HOT 1
- styling app not found HOT 1
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 nix-on-droid.