Package: fish-common
Version: 3.3.1+ds-1
Followup-For: Bug #999749

The problem is that the Debian-specific configuration is run after
fish uses the fish_user_paths universal variable to setup the PATH
environment variable. A working solution could be to use
fish_add_path to add the wanted paths (fish_add_path will
deduplicate them itself). Example:

    if test (/usr/bin/id -u) = 0
        fish_add_path -aP /usr/local/sbin
        fish_add_path -aP /usr/local/bin
        fish_add_path -aP /usr/sbin
        fish_add_path -aP /usr/bin
        fish_add_path -aP /sbin
        fish_add_path -aP /bin
    else
      fish_add_path -aP /usr/local/bin
      fish_add_path -aP /usr/bin
      fish_add_path -aP /bin
      fish_add_path -aP /usr/local/games
      fish_add_path -aP /usr/games
    end

Hope this helps,

federico

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-4-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fish-common depends on:
ii  libjs-jquery  3.5.1+dfsg+~3.5.5-8

Versions of packages fish-common recommends:
ii  fish  3.3.1+ds-1

fish-common suggests no packages.

-- no debconf information

Reply via email to