Module detector

Module detector 

Source
Expand description

Contains code that actually detects the default terminal emulator

XDG and DE-specific code is in a separate file

Functionsยง

detect_terminal
Run other functions in this module to find the terminal
detect_terminal_desktop
Detect the DE and run the appropriate code to detect the terminal
detect_terminal_env
Read TERMINAL environment variable and turn into Terminal if successful
detect_terminal_path
Check if a terminal from a list is in $PATH
detect_terminal_xdg_proposed
Try to detect the terminal with the proposed XDG spec