execute script after login

hi ,
where is the place to add extra commands after login into photon ?

i want to load the drivers for my usb mouse.
i have tried putting the commands in rc.local but that does not work.
(the commands to load the mouse drivers do work when i load them from a
terminal window in photon )

Johan