HGL
exotic-emerald
Close program with bash
Is there some way to close a program with bash? Similar to heroic://launch/...
I'm using a script to start Vortex Mod Manager as for some reason it can't deploy mods - so I wrote a script to do it instead.
But I can only ever drop mods into Vortex to import them once. So when I download more mods I have to restart Vortex to be able to import them (I don't want to import them one by one using the Wine file browser).
That's why I wanted to use e.g. xdg-open heroic:://stop/... to stop Vortex and restart it when I type "s" into the console. I wasn't able to get the PID of Vortex itself so killing it that way didn't work either.
Now I could just make a separate script to deploy the mods (as linking the files takes some time) that I run manually. But why settle for a suboptimal solution when I could instead waste hours trying to make it into one script and save minutes over the life time I'm using it?
0 Replies