I'll post my experience here just in case others are curious and don't
want to experience my pain.  :-)  I'm sure there's an easier way.

The files you want to modify are on the Touch itself, not the server. 
This is new for a SB3 hacker like myself.  You need to enable
SSH/Remote login from the UI.

>From there, I've found the Touch applets are located in:
/usr/share/jive/applets/

I've modified the
/usr/share/jive/applets/NowPlaying/NowPlayingApplet.lua with this:

local repeatModes = {
mode0 = 'repeatOff',
--      mode1 = 'repeatSong',
--      mode2 = 'repeatPlaylist',
}

This changes the UI - the button won't respond to a touch graphically,
but it still changes the repeat mode itself.  

What you need to do is comment out the push action (-- is a comment
mark in Lua - egad, not ANOTHER language to learn! :-()

self.repeatButton = Button(Icon('repeatMode'),
function() 
--Framework: pushAction("repeat_toggle")
return EVENT_CONSUME 
end
)

This disables the button on the GUI, but keeps it working on the
remote.  1.  Small.  Victory.  :-)

You also need to reboot between changes as far as I can tell.  This
will make hacking rather tedious - any way to re-launch an Applet
without rebooting?  I ended up hacking away on Squeezeplay since it's
almost instant reboot on my PC.

-Dan


-- 
plympton
------------------------------------------------------------------------
plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955
View this thread: http://forums.slimdevices.com/showthread.php?t=77679

_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch

Reply via email to