On Sunday, 14 June 2020 19:06:36 BST Wynn Wolf Arbor wrote:
> On 2020-06-14 18:45, Peter Humphrey wrote:
> > Yes; this is what I get:
> > 
> > $ ./Bitwarden*/opt/Bitwarden/bitwarden
> > A JavaScript error occurred in the main process
> > Uncaught Exception:
> > Error: /tmp/.org.chromium.Chromium.QkN0cP: failed to map segment from
> > shared object
> > --->8
> 
> From what I remember this is caused by having /tmp mounted with noexec.
> Sadly the app tries to execute a process directly from within the
> temporary directory and fails. Try something like this to confirm:
> 
>       mkdir $HOME/.cache/bitwarden-tmp
>       TMPDIR=$HOME/.cache/bitwarden-tmp ./Bitwarden*/opt/Bitwarden/
bitwarden

That was a good idea - but it didn't help, so that's not the answer.

> To see whether you've mounted /tmp with noexec: mount | grep /tmp
> 
> Should give something like this:
> 
>       tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
> 
> Note that having /tmp mounted with noexec is usually a good idea. I used
> to create a wrapper script that launched these kinds of app with a
> special TMPDIR.
> 
> > I haven't played with java before, so I'm trying to follow the gentoo
> > wiki. My first question is whether I need a jdk as well as a jre. The
> > wiki talks blithely about virtual machines, and I'm left to guess
> > whether the jre is the jvm, as it seems. I'm currently installing
> > openjre and openjdk; icedtea-bin is also installed.
> 
> The JRE is the Runtime Environment. It includes all things necessary to
> run a compiled Java program (so it does indeed include the JVM). The JDK
> is the Development Kit - it includes the JRE, but also ships with the
> javac compiler and a few other tools. So, if you intend to just run an
> already compiled Java program (usually in the form of a .jar), you just
> need the JRE. If you need to compile Java programs, you should instead
> install the JDK (and can remove the JRE fully).

That makes sense, and I'd supposed it to be so. It would be helpful if the 
wiki said so.

> Regardless of that, JavaScript is not Java [1]. There's no need for the
> JRE if you want to run JavaScript code. The Bitwarden desktop app does
> not need a JRE or JDK.

Yes, I understand that.

> [1] https://en.wikipedia.org/wiki/JavaScript#Java


-- 
Regards,
Peter.




Reply via email to