Skip to content

[Error] distrobox-host-exec don't work consistently on tmux #1828

@TranThangBin

Description

@TranThangBin

Describe the bug
distrobox-host-exec don't work consistently on tmux

To Reproduce
I am running an archlinux container trying to execute host binaries in the tmux of the container

Expected behavior
successfully execute the host's binaries

Logs

[trant@archlinux .dotfiles]$ distrobox-host-exec -v -- git status
+ '[' '!' -f /run/.containerenv ']'
+ '[' -z git ']'
++ id -ru
+ '[' 1000 -ne 0 ']'
+ command -v sudo
+ sudo_command=sudo
+ command -v curl
+ download_command='curl -sLo'
++ uname -m
+ architecture=x86_64
+ echo x86_64
+ grep -q armv
+ command -v host-spawn
++ sort -V
++ head -n 1
+++ host-spawn --version
++ printf '%s\n%s\n' v1.6.0 v1.6.0
+ '[' v1.6.0 '!=' v1.6.0 ']'
+ '[' -z /run/user/1000 ']'
+ '[' -z unix:path=/run/user/1000/bus ']'
+ XDG_RUNTIME_DIR=/run/host//run/user/1000
++ echo unix:path=/run/user/1000/bus
++ cut -d = -f2-
+ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/host//run/user/1000/bus
++ basename git
+ '[' git = xdg-open ']'
++ basename git
+ '[' git = gio ']'
++ basename git
+ '[' git = flatpak ']'
+ '[' '!' -t 1 ']'
+ tty
+ host-spawn git status
[trant@archlinux .dotfiles]$ echo $?
127
[trant@archlinux .dotfiles]$ echo $CONTAINER_ID 
distrobox-RvPL5ugTEh

Desktop (please complete the following information):

  • I am using podman.
  • podman version 5.6.0
  • distrobox version 1.8.1.2
  • host: archlinux
  • I install distrobox with pacman

Additional context
I have installed flatpak

Edit: I want to say that it sometimes work but most of the time it will result like this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions