ICEWM-ENV(5)

πŸ’… ICEWM-ENV(5) β€” the icewm environment configuration file, bestie

okay so real talk: this is page ICEWM-ENV(5) from the Standards, Environments and Macros girlies, and it's literally the cheat sheet for env β€” the lil file that sets up your whole vibe before IceWM even wakes up. let's get into it 🫢


✨ NAME ✨

icewm-env β€” the icewm environment configuration file. that's it, that's the queen πŸ‘‘


🌸 SYNOPSIS 🌸

$ICEWM_PRIVCFG/env
$XDG_CONFIG_HOME/icewm/env
$HOME/.icewm/env
/usr/etc/icewm/env
/usr/share/icewm/env

five possible homes for your env file, and she only ever picks one. main character energy, honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

so icewm-session(1) reads this file called env and slurps up extra environment variables from it before it does anything else β€” like, before literally anything. no cap, it's the first thing on the agenda.

then those variables get propagated to all the other processes, including icewm(1), through their environment. so everybody downstream inherits the vibe. πŸ’–


πŸŽ€ FORMAT πŸŽ€

each line gets run through POSIX shell expansion by wordexp(3). yes, every line. she's thorough like that.

comment lines starting with a hash-sign (#) are ignored β€” go off, leave notes for your future self.

icewm-session(1) will load those expanded lines that contain a name, followed by an equals sign, followed by the value (which may be empty). that's the whole shape of it: name = value. simple. iconic.

⭐ also: the word unset begins a line with names to be removed from the environment. so if something's gotta go, unset is your girl.

🧚 EXAMPLES 🧚

# This is a comment.
# And another.

XDG_CURRENT_DESKTOP="ICEWM"
XDG_MENU_PREFIX="unexicon-"

START_DATE=`date`
START_FROM=`pwd`

look at that. comments, values in quotes, and backtick command substitution just doing its lil thing. chef's kiss πŸ”₯


🌈 FILES 🌈

icewm-session(1) looks for the env file in the following locations:

$ICEWM_PRIVCFG/env
$XDG_CONFIG_HOME/icewm/env
$HOME/.icewm/env
/usr/etc/icewm/env
/usr/share/icewm/env

the locations are searched in the order listed; the first file found is read and the remainder ignored. so don't come crying if your second choice never gets a look-in β€” that's literally the rules. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

iykyk, go read those next 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Brian Bidulock <mailto:bidulock@openss7.org>. thank you brian, we love you for this one πŸ™ˆ


πŸ“ LICENSE πŸ“

IceWM is licensed under the GNU Library General Public License. See the COPYING file in the distribution. read it, bestie, it's giving responsible queen.


and that's the page, fr fr ✨ sign-off time: this was icewm 4.1.0, dated 2026-08-06, page ICEWM-ENV(5) β€” go forth and set your env variables πŸ’…πŸŽ€

πŸ“¦ where this page comes from