Git Product home page Git Product logo

Comments (8)

Gerschtli avatar Gerschtli commented on June 1, 2024

Can you share more information about your setup? Because running nix run nixpkgs.emacs -c emacs works perfectly fine for me.

from nix-on-droid.

codygman avatar codygman commented on June 1, 2024

@Gerschtli Do you have a .emacs or .emacs.d directory? I moved my .emacs and .emacs.ddirectory temporarily to test but I'm not sure if that makes a difference.

I just tried again and the issue is reproducible with nix run nixpkgs.emacs -c emacs.

I'm not sure what other information is useful, but here's what I can think of being relevant:

  • I installed from this link.
  • I have a moto x4 on Android 8.1.0 build number OPW28.1

from nix-on-droid.

codygman avatar codygman commented on June 1, 2024

Perhaps your user has a home directory and if applicable to android an entry in /etc/passwd?

from nix-on-droid.

t184256 avatar t184256 commented on June 1, 2024

Yeah, a good starting point to unwind stuff.

/etc/passwd should be mapped to a file generated during Nix-on-Droid installation, and I haven't really put much thought into it. It has already been a source of problems before.

Could you both please share the output of

id
echo $USER $HOME
cat /etc/passwd
ls -ld $HOME

from nix-on-droid.

Gerschtli avatar Gerschtli commented on June 1, 2024

My output:

~
❯ id
uid=10256(nix-on-droid) gid=10256 groups=10256,3003,9997,20256,50256,99909997

~
❯ echo $USER $HOME
u0_a256 /data/data/com.termux.nix/files/home

~
❯ cat /etc/passwd
root:x:0:0:System administrator:/data/data/com.termux.nix/files/usr/root:/bin/sh
nix-on-droid:x:10256:10256:nix-on-droid:/data/data/com.termux.nix/files/home:/bin/sh

~
❯ ls -ld $HOME
drwx------ 11 nix-on-droid 10256 4096 Sep 15 05:06 /data/data/com.termux.nix/files/home

I did not create any emacs related directories. Currently I only have an empty ~/.emacs.d/auto-save-list created by the initial call of emacs.

from nix-on-droid.

codygman avatar codygman commented on June 1, 2024

It has already been a source of problems before.

Perhaps resolution of this issue will help solve other issues or make nix on android more stable then :)

My output:

bash-4.4$ id
uid=10211(nix-on-droid) gid=10211 groups=10211,3003,9997,20211,50211
bash-4.4$ echo $USER $HOME
u0_a211 /data/data/com.termux.nix/files/home
bash-4.4$ cat /etc/passwd
root:x:0:0:System administrator:/data/data/com.termux.nix/files/usr/root:/bin/sh
nix-on-droid:x:10211:10211:nix-on-droid:/data/data/com.termux.nix/files/home:/bin/sh
bash-4.4$ ls -ld $HOME
drwx------ 7 nix-on-droid 10211 4096 Sep 14 16:04 /data/data/com.termux.nix/files/home

from nix-on-droid.

t184256 avatar t184256 commented on June 1, 2024

@codygman, will this go away if you rename the user in /etc/passwd to u0_a211?

from nix-on-droid.

Gerschtli avatar Gerschtli commented on June 1, 2024

No activity here since a long time. Feel free to reopen if still an issue.

from nix-on-droid.

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.