LubosD / twinkle

Qt 5 port of Twinkle
http://twinkle.dolezel.info
GNU General Public License v2.0
170 stars 50 forks source link

Allowing multiple `--cmd` arguments #236

Open SummerSeaSun opened 3 years ago

SummerSeaSun commented 3 years ago

This command send successfully a message to a sip extension but then it won't exit, but it start the GUI and keep running:

twinkle --immediate --cmd 'message -s object -d dst sipexten text message'

I've tried appending: --cmd 'exit'

But this take precedence and won't send the message. Is there a way to send the message and close twinkle at once? Thanks, BR

fbriere commented 2 years ago

Is there a way to send the message and close twinkle at once?

A round-about way to achieve this would be to launch a second instance of Twinkle with --cmd exit, causing the first one to terminate. (You would probably want to insert a small delay between the two, to minimize the possibility of the second instance completing its initialization before the first, thus becoming the actual "first" instance and screwing everything up.)

Still, being able to pass multiple --cmd arguments would be a nice addition.