Closed DuilioPerez closed 2 weeks ago
Provide output of echo $LD_PRELOAD
executed in LXQT terminal, where npm failed.
In both, lxqt and xfce fails, and in both, echo $LD_PRELOAD
don't print nothing, just a newline. In Termux, it prints /data/data/com.termux/files/usr/lib/libtermux-exec.so
.
That explains why npm doesn't work. Looks like desktop doesn't inherit environment variables.
Excuse me, I think title isn't correct, because it is the same in xfce. It don't work in both DE
It's on GUI in general. With this:
$ termux-x11 :1 -xstartup "dbus-launch --exit-with-session xfce4-terminal"
(xfce4-terminal:13956): xfce4-terminal-WARNING **: 08:20:42.854: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
It doesn't work too:
It's on GUI in general.
Indeed, it seems to be a general termux-x11
problem - proposed https://github.com/termux/termux-x11/pull/728 to fix that.
Probably it is caused by this line. https://github.com/termux/termux-x11/blob/f20fbbd6996653d2e03dbc7e3932508a88aaa15c/termux-x11#L3 But removing it will make termux-x11 not working on some devices (probably, idk if it is relevant for modern termux).
Problem description
I've tried to install some plugins in coc.nvim when I was using lxqt, but it reported an error. I tried to install it manually, and it seems npm can't ve excecuted on GUI. In termux app (terminal emulator, no GUI), it works normally. Here is a screenshot in two DE. npm don't work, but nodejs works perfectly
What steps will reproduce the bug?
Excecute npm when you are using a desktop, here is working in Termux:
What is the expected behavior?
To run npm
System information