Am 2004-05-02 15:54 +0300 schrieb Tuomo Valkonen:
> Don't use os.execute, it blocks and the environment isn't set up
> properly. Use 'exec' provided by Ion.
OK, no problem :)
> You shouldn't call the function here, simply provide a reference to it.
>
> kpress(SECOND_MOD.."F10", mpc_status_osd),
OK, that gives:
Ion startup error log:
>> Unable to remove binding Mod1+F10. Either you are trying to remove a binding that
>> has not been set or you're trying to bind to a nil function
>> Stack trace:
0 [C]: in 'mplex_bindings'
1 /home/konsti/.ion2/ion-bindings.lua:98
[Skipping unnamed C functions.]
4 [C]: in 'include'
5 /home/konsti/.ion2/ion.lua:31
[Skipping unnamed C functions.]
And in mpc.lua (included):
function mpc_status_osd()
exec("mpc | osd_cat -u red -s 2 -p middle -A left -o 30 -f
'-b&h-lucida-bold-r-normal-*-*-240-*-*-p-*-*-*' -c rgb:ff/00/00 -d
2")
end
> Are you using Lua 5.0.2? 5.0 used to have a bug that caused functions to
> go missing at times.
Yes, 5.0.2...
> > How do I call it?
>
> mpc_status_osd()
You told only referencing it by mpc_status_osd is better?
But my be I understood nothing yet :(
Regards, Konsti
--
2.6.5-mm1
Konstantin Kletschke <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
keulator.homelinux.org up 18 min,