# HG changeset patch # User Stanislas Leduc # Date 1759911635 0 # Node ID 345e3c7dcfd9911598883857df537839b1f1be64 # Parent 54e4a2dfa8ae5e530011e9d5d4c3382305e53340 Fix miss condition for openbox symlink menu diff -r 54e4a2dfa8ae -r 345e3c7dcfd9 slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch --- a/slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch Tue Oct 07 05:55:24 2025 +0000 +++ b/slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch Wed Oct 08 08:20:35 2025 +0000 @@ -1,13 +1,15 @@ --- a/etc/init.d/system.sh +++ b/etc/init.d/system.sh -@@ -60,6 +60,11 @@ +@@ -60,6 +60,13 @@ echo "$tz" > /etc/TZ fi +# Ensure Openbox menu is linked correctly ++if [ -f /etc/xdg/openbox/menu.xml ]; then +case "${LANG%%_*}" in + de|fr|it|ru) ln -sf menu.${LANG%%_*}.xml /etc/xdg/openbox/menu.xml ;; +esac ++fi + # Activate an eventual swap file or partition if ! grep -q 'noswap' /proc/cmdline; then