IlanCosman/tide

Tide identifies distrobox's linux flavor from host and not from container

johnr14 opened this issue · 1 comments

Describe the bug

Running tide in a distrobox, it doesn't identify the right os of the distrobox but the host os.

My setup :
Fedora host
arch distrobox

Results is a Fedora icon in distrobox.

Steps to reproduce

  1. Install distrobox on host
  2. Create a container
    distrobox create --image arch:latest --name chezmoi --home /home/user/.local/home/chezmoi
  3. See error
    The logo is a F
    It's misleading as we are moving to the container era and having the right context on the prompt is the only way to identify if we are in the right terminal.

Screenshots

image

Environment

Output of tide bug-report:

Your Fish version is out of date.
The latest is 3.7.1. You have 3.7.0.
Please update before submitting a bug report.
$ distrobox-host-exec distrobox -V
distrobox: 1.7.1.0
$ uname -ra
Linux chezmoi.fedora 6.7.10-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 18 18:56:52 UTC 2024 x86_64 GNU/Linux
$ cat /etc/pacman.d/mirrorlist | grep -v "#"
Server = https://archive.archlinux.org/repos/2024/02/01/$repo/os/$arch

Additional context

Distrobox's arch is not current, it's frozen on a archive date, so fish is out of date...

Could be the same with a podman or docker container ?

I was trying my chezmoi dotfiles on multiple hosts and it looks like the file fish_variables was copied from one host to the other.
Restarting from fresh after removing fish_variables from my dotfiles, fixed the problem !

Closing this as my error so I don't waste other's time.