I've installed MythBuntu on a computer. MythTV doesn't support the Asus AI remote IR receiver so i searched for possible solutions. One of them was a Python script that acts as a bridge between a terminal window and and the focused application.
It needs to be executed by a regular user bjorn with root privileges (sudo) between the user logging on and MythTV getting loaded without asking for a password. So far i've tried putting python Linux_Asus_AI_remote.py, sudo Linux_Asus_AI_remote.py, sudo python Linux_Asus_AI_remote.py in /etc/rc.local
Questions:
It should be executed after the user logs on, MythTV is launched automatically and receives focus hereby receiving the keystrokes generated from Linux_Asus_AI_remote.py
is rc.local executed before or after a user logging on to the system?
How should i safely execute the script with root privileges without asking the user for a password? (Keep in mind that the application must keep running in the background and the user -when needing additional privileges- still needs to be asked for a password.)
Script test:
After a user logs on, i started a terminal window and entered sudo python Linux_Asus_AI_remote.py. Everything runs fine once i have entered the right password and gave focus to MythTV.
It shouldn't terminate the script after 15 minutes and the user should still need to enter a password in order to get additional permissions.
Thanks in advance.