1

I want to run this command when the login screen that prompts for your password is displayed: python ~/blabla/unlock.py &. I've tried using both lightdm and rc.local to no avail. Any help is appreciated!

  • Because of the nature of interpeting language you need have to have working python shell to execute python scripts. If i dont get you wrong, you want to do run scripts before login, i mean before the running shell which is as i know imposibble because shell begins to run in user level. Am I wrong? +1 – al0s Oct 12 '16 at 4:25
  • Or you just want to run when you login with username and password? Your question is not clear. – al0s Oct 12 '16 at 4:33
  • @al0s I stated that I wanted to run it at the password prompt screen..... – Ricky Oct 12 '16 at 4:43
  • I am also programming in Python. I want to learn too if it is possible. Let's wait someone to answer it. Maybe this question makes more sense in stackexchange unix/linux part. – al0s Oct 12 '16 at 5:03
  • How exactly did you try to use lightdm to do this? what does the script do? how should the system interpret ~ before a user has logged in? – steeldriver Oct 12 '16 at 5:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.