omegaui / linux-voice-control

Your personal, fully customization, Linux Voice Control Assistant.
GNU General Public License v3.0
129 stars 7 forks source link

How to restart after change the command by voice? #18

Open Moanrisy opened 3 months ago

Moanrisy commented 3 months ago

Because the app need to be restarted to recognized the new command list. I would like to say 'please reboot yourself alfred'.

It proceeds to kill it's process by 'pkill pt_main_thread' Then somehow the script still running in background although the app already killed? pkill pt_main_thread ; sleep 3s && linux-voice-control-gui

but using chain command not working, it either only kill the app or spawning the app again (there is 2 running instance)

omegaui commented 3 months ago

It's because when the voice control exits, any task it may be executing will get terminated.

omegaui commented 3 months ago

I'll take a look at it.