ClusterM / hakchi2

Tool that allows you to add more games to your NES/SNES Classic Mini. WARNING: hakchi2 is no longer supported. Please use hakchi2 CE.
GNU General Public License v3.0
2.92k stars 454 forks source link

help : Script Custom theme [nes.png] for each folder [Sega, Atari, Nes, Snes... #380

Open Nysde opened 7 years ago

Nysde commented 7 years ago

I would like to run a custom theme at the opening of a folder, I created the file[ chmenu_sega ] In the directory [bin]

chmenu

I have to modify the FILE .desktop of my file SEGA [CLV-S-00036] Exec=/bin/chmenu_sega 036 36

I created the theme directory [nes.png] for the folder Sega : /etc/theme/sega ftp

When opening the folder Sega, the file chmenu_sega and execute , I want the image /var/lib/hakchi/rootfs/usr/share/clover-ui/resources/sprites/nes.png Be amended by /etc/theme/sega/nes.png

the script [chmenu_sega] Do not want to replace nes.png

if [ ! -f "$rootfs/usr/share/clover-ui/resources/sprites/nes.png" ]; then ln -s "/etc/theme/sega/nes.png" "$rootfs/usr/share/clover-ui/resources/sprites/nes.png" fi

Thank you for your help.

Nysde commented 7 years ago

It works with this script :

fi if [ ! -f "$rootfs/usr/share/clover-ui/resources/sprites/xxx.png" ]; then cp -f "/etc/theme/sega/nes.png" "$rootfs/usr/share/clover-ui/resources/sprites/nes.png" fi

The problem, I have to restart the Nes Mini to update the change of nes.png