From: Xinqi Bao Date: Mon, 19 Oct 2026 15:09:54 +0000 (+0800) Subject: fix(x11): use posix file tests in startup X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/commitdiff_plain/7d209de841df6e865bb66ec6be9a747154395623?ds=sidebyside;hp=bcf6c79daee82fac1b00ea8357967d4e0fcb23d2 fix(x11): use posix file tests in startup Use quoted paths and POSIX test syntax so /bin/sh can load xbindkeys and Xresources settings. --- diff --git a/.xinitrc b/.xinitrc index dcb7bb1..c82be98 100644 --- a/.xinitrc +++ b/.xinitrc @@ -5,8 +5,8 @@ xwallpaper --zoom ~/pic/death-stranding_3.png setxkbmap -option caps:escape X_DIR=~/.config/x11 -[[ -f $X_DIR/xbindkeysrc ]] && xbindkeys -f $X_DIR/xbindkeysrc -[[ -f $X_DIR/xresources ]] && xrdb -merge $X_DIR/xresources +[ -f "${X_DIR}/xbindkeysrc" ] && xbindkeys -f "${X_DIR}/xbindkeysrc" +[ -f "${X_DIR}/xresources" ] && xrdb -merge "${X_DIR}/xresources" autostart="xcompmgr slstatus fcitx5" for program in $autostart; do