From 7d209de841df6e865bb66ec6be9a747154395623 Mon Sep 17 00:00:00 2001 From: Xinqi Bao Date: Mon, 19 Oct 2026 23:09:54 +0800 Subject: [PATCH] fix(x11): use posix file tests in startup Use quoted paths and POSIX test syntax so /bin/sh can load xbindkeys and Xresources settings. --- .xinitrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1