Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] environment: line 104: /dev/tty: No such device or address #95

Open
EvgeniyBlinov opened this issue Mar 16, 2024 · 0 comments
Open

Comments

@EvgeniyBlinov
Copy link

When run in bwrap like in lf https://github.com/gokcehan/lf/wiki/Previews#sandboxing-preview-operations

#!/bin/bash
set -euo pipefail
(
    exec bwrap \
        --ro-bind /usr/bin /usr/bin \
        --ro-bind /usr/share/ /usr/share/ \
        --ro-bind /usr/lib /usr/lib \
        --ro-bind /usr/lib64 /usr/lib64 \
        --symlink /usr/bin /bin \
        --symlink /usr/bin /sbin \
        --symlink /usr/lib /lib \
        --symlink /usr/lib64 /lib64 \
        --proc /proc \
        --dev /dev  \
        --ro-bind /etc /etc \
        --ro-bind ~/.config ~/.config \
        --ro-bind ~/.cache ~/.cache \
        --ro-bind "$PWD" "$PWD" \
        --ro-bind ~/ ~/ \
        --unsetenv DBUS_SESSION_BUS_ADDRESS \
        --unshare-all \
        --new-session \
        bash ~/.config/lf/scopelf.sh "$@"
)

we got an error

environment: line 104: /dev/tty: No such device or address
environment: line 106: /tmp/ctpvicat.0: No such file or directory

bwrap --dev-bind /dev/tty /dev/tty - this doesn't solve the problem.

System: arch linux
ctpv from AUR

local/ctpv-git r264.4efa0f9-1
    Fast image previews for lf

Terminal emulator: kitty 0.31.0-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant