开发者

run kiosk .app at startup in mac

开发者 https://www.devze.com 2023-02-08 11:04 出处:网络
i want to startup an application (.app) at startup in a GUEST ACCOUNT in mac(snow leopard). THe app disables all shortcuts and dock as well(using kiosk). The user must enter a token number to login .

i want to startup an application (.app) at startup in a GUEST ACCOUNT in mac(snow leopard). THe app disables all shortcuts and dock as well(using kiosk). The user must enter a token number to login . I have made the app but i cant force every other service to stop . If i put it in boot sequence through system->services, the app does not come at front. instead it is launched but is in the doc and i have to left click it to launch it in front. :( (i want to do this programmatically by editing the boot sequence of mac OS )

Problem is I used kiosk and it only works when my application is in front.

So i need to perform this that i cant figure out. 1) run my app only(after login and NO OTHER SERVICE) and rest of the mac should boot once my app has e开发者_StackOverflow中文版xited.

Thanks in advance for any help that u can provide


I already tried to tell you in your previous question that you are probably going the wrong way. If you put something into a user´s login items, it can easily be deactivated by holding "shift" while logging in (which you probably do not want); also, completely hacking your Mac OS Startup routine (if it can be done) is a bit too much in my eyes.

You should seriously consider

  • using a login/policy banner (realised for example here) which would pop up over the loginwindow (so a user has to agree)
  • using a loginwindow hook combined with a logout hook to change the user password (e.g. based on a hidden password-list and using dscl -passwd or pwpolicy) once the user logs out. This way you should be able to generate passwords based on a list and validate them (token system)

Yours, Asmus

P.S.: on your previous question you commented on mipadi´s answer that you have found a great link, thought it´s missing. Could you maybe add this, as this might be interesting for other people in the future.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号