Skip to content

Commit d2768d1

Browse files
committed
Stop the Open Profile dialog from appearing after switching to roaming 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.
1 parent b4acda0 commit d2768d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dictation_server.pyw

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def startNatSpeak():
191191
status = natlinkstatus.NatlinkStatus()
192192
natspeak_exe_path = os.path.join(
193193
status.getDNSInstallDir(), 'Program', 'natspeak.exe')
194-
os.startfile(natspeak_exe_path)
194+
win32api.ShellExecute(
195+
0, None, natspeak_exe_path,
196+
'/user "https://sabi.net/dragon/Nicholas Riley (v12)"', '', 0)
195197

196198
import time
197199
while not natlink.isNatSpeakRunning():

0 commit comments

Comments
 (0)