Skip to content

Instantly share code, notes, and snippets.

@JonnySchnittger
Last active July 17, 2019 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonnySchnittger/e2fb639868ada41df8e9c5d551f3a02a to your computer and use it in GitHub Desktop.
Save JonnySchnittger/e2fb639868ada41df8e9c5d551f3a02a to your computer and use it in GitHub Desktop.
launch notepad.exe when Slack loads
document.addEventListener("DOMContentLoaded", function () {
const { spawn } = require('child_process');
const subprocess = spawn('notepad.exe', [], {
detached: true,
stdio: 'ignore'
});
subprocess.unref();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment