TERM variable not set in Octopi terminal

I am currently using the fish shell and am trying to get it to work with octopi. Unfortunately it seems as the octopi terminal does not set the TERM variable. To my understanding it is used to let the shell/other programs know the graphical output options of the given terminal. I am unsure where I am supposed to set the TERM variable or rather how to set up the octopi terminal properly.

initial message, set and inxi -Fxxxz below:

<W> fish: Could not set up terminal.
<W> fish: TERM environment variable not set.
Welcome to fish, the friendly interactive shell    
richardrichard-pc@~ >                
richardrichard-pc@~ > set
CMD_DURATION 0
COLORFGBG '15;0'
COLUMNS 82
DBUS_SESSION_BUS_ADDRESS unix:path=/run/user/1000/bus
DESKTOP_SESSION /usr/share/xsessions/plasma
DISPLAY :0
FISH_VERSION 3.1.0
GTK_MODULES canberra-gtk-module
HOME /home/richard
IFS \n\ \t
KDE_FULL_SESSION true
KDE_SESSION_UID 1000
KDE_SESSION_VERSION 5
KWIN_TRIPLE_BUFFER 1
LANG en_US.UTF-8
LANGUAGE
LC_ADDRESS de_DE.UTF-8
LC_IDENTIFICATION de_DE.UTF-8
LC_MEASUREMENT de_DE.UTF-8
LC_MONETARY de_DE.UTF-8
LC_NAME de_DE.UTF-8
LC_NUMERIC de_DE.UTF-8
LC_PAPER de_DE.UTF-8
LC_TELEPHONE de_DE.UTF-8
LC_TIME de_DE.UTF-8
LINES 27
LOGNAME richard
MAIL /var/spool/mail/richard
MOZ_PLUGIN_PATH /usr/lib/mozilla/plugins
PAM_KWALLET5_LOGIN /run/user/1000/kwallet5.socket
PATH '/home/richard/.local/bin/'  '/opt/anaconda/bin/'  '/home/ri…
PWD /home/richard
QT_AUTO_SCREEN_SCALE_FACTOR 0
QT_LINUX_ACCESSIBILITY_ALWAYS_ON 1
SESSION_MANAGER local/richard-pc:@/tmp/.ICE-unix/981,unix/richard-pc:/tmp/.I…
SHELL /bin/fish
SHLVL 3
USER richard
WINDOWID 0
XAUTHORITY /home/richard/.Xauthority
XCURSOR_THEME breeze_cursors
XDG_CURRENT_DESKTOP KDE
XDG_DATA_DIRS /home/richard/.local/share/flatpak/exports/share:/var/lib/fl…
XDG_RUNTIME_DIR /run/user/1000
XDG_SEAT seat0
XDG_SEAT_PATH /org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS user
XDG_SESSION_DESKTOP KDE
XDG_SESSION_ID 1
XDG_SESSION_PATH /org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE x11
XDG_VTNR 1
_ set
__fish_active_key_bindings fish_default_key_bindings
__fish_added_user_paths
__fish_bin_dir /usr/bin
__fish_config_dir /home/richard/.config/fish
__fish_config_interactive_done
__fish_data_dir /usr/share/fish
__fish_help_dir /usr/share/doc/fish
__fish_init_2_39_8
__fish_init_2_3_0
__fish_init_3_x
__fish_initialized 3100
__fish_sysconf_dir /etc/fish
__fish_user_data_dir /home/richard/.local/share/fish
fish_bind_mode default
fish_color_autosuggestion 969896
fish_color_cancel normal
fish_color_command 5fd7ff
fish_color_comment ffffaf
fish_color_cwd 008000
fish_color_cwd_root 800000
fish_color_end ff87d7
fish_color_error ff5f5f
fish_color_escape 00a6b2
fish_color_history_current normal
fish_color_host normal
fish_color_host_remote yellow
fish_color_match normal
fish_color_normal normal
fish_color_operator 00a6b2
fish_color_param 87ffd7
fish_color_quote ffff5f
fish_color_redirection 00ff87
fish_color_search_match ffff00
fish_color_selection c0c0c0
fish_color_status red
fish_color_user 00ff00
fish_color_valid_path normal
fish_complete_path '/home/richard/.config/fish/completions'  '/etc/fish/complet…
fish_function_path '/home/richard/.config/fish/functions'  '/etc/fish/functions…
fish_greeting 'Welcome to fish, the friendly interactive shell'
fish_key_bindings fish_default_key_bindings
fish_pager_color_completion normal
fish_pager_color_description 'B3A06D'  'yellow'
fish_pager_color_prefix 'white'  '--bold'  '--underline'
fish_pager_color_progress 'brwhite'  '--background=cyan'
fish_pid 12444
fish_private_mode
fish_user_paths '/home/richard/.local/bin/'  '/opt/anaconda/bin/'  '/home/ri…
history exit 'set | grep TERM' 'set -g' 'set -l' set exit echo 'echo…
hostname richard-pc
pipestatus 0
status 0
umask 0022
version 3.1.0
richardrichard-pc@~ > inxi -Fxxxz                                                
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Argument "" isn't numeric in numeric eq (==) at /bin/inxi line 379.
System:
  Host: richard-pc Kernel: 5.4.24-1-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 9.2.1 Desktop: KDE Plasma 5.18.3 tk: Qt 5.14.1 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8Z68-V PRO GEN3 v: Rev 1.xx 
  serial: <filter> UEFI: American Megatrends v: 3802 date: 01/15/2015 
CPU:
  Topology: Quad Core model: Intel Core i5-2500 bits: 64 type: MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 6144 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 26499 
  Speed: 1605 MHz min/max: 1600/3700 MHz Core speeds (MHz): 1: 1605 2: 1605 
  3: 1605 4: 1605 
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050] driver: nvidia v: 430.64 
  bus ID: 01:00.0 chip ID: 10de:1c81 
  Display: x11 server: X.Org 1.20.7 driver: nvidia compositor: kwin_x11 
  tty: N/A 
  OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 430.64 
  direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
  Sound Server: ALSA v: k5.4.24-1-MANJARO 
Network:
  Device-1: Intel 82579V Gigabit Network vendor: ASUSTeK P8P67 Deluxe 
  driver: e1000e v: 3.2.6-k port: f040 bus ID: 00:19.0 chip ID: 8086:1503 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 991.14 GiB used: 128.95 GiB (13.0%) 
  ID-1: /dev/sda vendor: Western Digital model: WD10EZEX-75WN4A0 
  size: 931.51 GiB speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> 
  rev: 1A02 scheme: GPT 
  ID-2: /dev/sdb vendor: Samsung model: SSD 830 Series size: 59.63 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 3B1Q scheme: GPT 
Partition:
  ID-1: / size: 49.48 GiB used: 26.80 GiB (54.2%) fs: ext4 dev: /dev/sdb2 
  ID-2: /home size: 483.33 GiB used: 102.15 GiB (21.1%) fs: ext4 
  dev: /dev/sda5 
  ID-3: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 35 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 46% 
Info:
  Processes: 203 Uptime: 5h 21m Memory: 7.75 GiB used: 2.65 GiB (34.3%) 
  Init: systemd v: 244 Compilers: gcc: 9.2.1 Shell: fish v: 3.1.0 
  running in: octopi inxi: 3.0.37 
richardrichard-pc@~ >     

Octopi is using qtermwidget to access the QTerminal. AFAIK you can't change much about that. Also, maybe better idea to replace Octopi with Pamac ...

So the TERM variable isn't set on your machine either?
I just checked and QTerminal wasn't installed, only qterminalwidget was. So I installed QTerminal to see if anything changes. The QTerminal, when run from command line, sets:

COLORTERM truecolor
TERM xterm-256color

(Is there a command that tells me which emulator is running?)

I am mainly using trizen/pacman to update/install packages. It is just something that bothers me for a while now and I don't know what to do about it. :blush:

I went ahead and created an issue on the Octopi Github page and the owner of the repo quickly resolved it. :blush:

Forum kindly sponsored by