Permalink
Browse files

Stop the Open Profile dialog from appearing after switching to roamin…

…g profile.

Ideally this would be configurable somewhere rather than hard-coding my profile path, but let's just get dictation startup back to being completely automated for me.
  • Loading branch information...
1 parent b4acda0 commit d2768d16c9f65a85bc7dbd40f675f9b1a2d48128 @nriley committed Jun 1, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 dictation_server.pyw
@@ -191,7 +191,9 @@ def startNatSpeak():
status = natlinkstatus.NatlinkStatus()
natspeak_exe_path = os.path.join(
status.getDNSInstallDir(), 'Program', 'natspeak.exe')
- os.startfile(natspeak_exe_path)
+ win32api.ShellExecute(
+ 0, None, natspeak_exe_path,
+ '/user "https://sabi.net/dragon/Nicholas Riley (v12)"', '', 0)
import time
while not natlink.isNatSpeakRunning():

0 comments on commit d2768d1

Please sign in to comment.