diff --git a/root/scripts/start.sh b/root/scripts/start.sh index b8809ec..43ec026 100755 --- a/root/scripts/start.sh +++ b/root/scripts/start.sh @@ -11,6 +11,21 @@ if [ ! -f /config/.config/openbox/rc.xml ] || grep -A20 "" /config/.config openbox --reconfigure fi +# configure default window behavior: open WeChat/QQ as normal windows instead of maximized +OB_RC="/config/.config/openbox/rc.xml" +if [ -f "$OB_RC" ] && ! grep -q '/i \ + \ + \ + no\ + \ + \ + no\ + \ + ' "$OB_RC" + openbox --reconfigure 2>/dev/null || true +fi + # generate openbox menu from defaults + ~/Desktop/*.desktop files /scripts/refresh-menu.sh