De
Index¶
de::is_desktop_env¶
Return true if the current desktop environment name contains the given string (case-insensitive).
Arguments¶
- $1 (desktop): environment name fragment to match
Exit codes¶
- 0: if true
- 1: if false
de::is_kde¶
Return true if the current desktop environment is KDE. shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites
Function has no arguments.
Exit codes¶
- 0: if true
- 1: if false
de::is_gnome¶
Return true if the current desktop environment is GNOME. shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites
Function has no arguments.
Exit codes¶
- 0: if true
- 1: if false
de::is_pop_shell¶
Return true if the current desktop environment is Pop!_OS shell (pop:GNOME). shellcheck disable=SC2120 # called with no args by callers, shellcheck can't see all call sites
Function has no arguments.
Exit codes¶
- 0: if true
- 1: if false