wok-current rev 25793 tip

Fix miss condition for openbox symlink menu
author Stanislas Leduc <shann@slitaz.org>
date Wed Oct 08 08:20:35 2025 +0000 (13 days ago)
parents 54e4a2dfa8ae
children
files slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch
line diff
     1.1 --- a/slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch	Tue Oct 07 05:55:24 2025 +0000
     1.2 +++ b/slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch	Wed Oct 08 08:20:35 2025 +0000
     1.3 @@ -1,13 +1,15 @@
     1.4  --- a/etc/init.d/system.sh
     1.5  +++ b/etc/init.d/system.sh
     1.6 -@@ -60,6 +60,11 @@
     1.7 +@@ -60,6 +60,13 @@
     1.8   	echo "$tz" > /etc/TZ
     1.9   fi
    1.10   
    1.11  +# Ensure Openbox menu is linked correctly
    1.12 ++if [ -f /etc/xdg/openbox/menu.xml ]; then
    1.13  +case "${LANG%%_*}" in
    1.14  +	de|fr|it|ru) ln -sf menu.${LANG%%_*}.xml /etc/xdg/openbox/menu.xml ;;	
    1.15  +esac
    1.16 ++fi
    1.17  +
    1.18   # Activate an eventual swap file or partition
    1.19   if ! grep -q 'noswap' /proc/cmdline; then