Giter Site home page Giter Site logo

kioskmode's Introduction

KioskMode

A useful (but dangerous!) app for putting a Mac into a locked-down "kiosk" mode. A minimal amount of key commands are supported (see below), but more can be added easily in main.c.

About

We run this app in installations on things like touchscreens that are user-facing. It is espcially handy when keyboards come into play.

Right now, it prevents the following key commands:

  • changing spaces (control + arrow key)
  • enter/exit chrome in fullscreen (command + shift + F, control + command + f )
  • tab switch to application (command + tab)
  • quit application (command + q)
  • open spotlight (command + space)
  • new tab (browser) (command + t)
  • close window (command + w)

Running

KioskMode is a headless app that is best run via the command line. Again, be careful! You can get stuck locked into an app pretty easily if you don't know what you're up to.

The app needs to be run as root. This means it must either be run from the command line as sudo, OR you can set-uid root. We do the latter like so:

  1. Copy KioskMode/Release/KioskMode to /Applications
  2. open Terminal
  3. type: "sudo chmod 4755 /Applications/KioskMode" and hit enter

Now you can run the app just by double clicking (it will open Terminal to run) or via a script. The app must be killed via a script, for example:

  1. open Terminal
  2. type "ps -A | grep KioskMode" and hit enter you should see a list like this: 27219 ttys000 0:00.03 /Applications/KioskMode 27288 ttys001 0:00.00 grep KioskMode
  3. copy the first number on the /Applications/KioskMode line (in this case 27219)
  4. type "kill NUMBER_YOU_COPIED" and hit enter

kioskmode's People

Contributors

robotconscience avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.