1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 16:52:01 +00:00

Allow auto commands with any number of parameters

This commit is contained in:
Alberto Fanjul 2022-05-28 10:37:53 +02:00
parent c42624885b
commit e816de93d3

View file

@ -918,7 +918,7 @@ int main(int argc, char **argv)
}
gchar* autocmd;
autocmd = g_key_file_get_string (gkf, "sinkctl", "autocmd", NULL);
if (autocmd && argc == 1) {
if (autocmd) {
gchar** autocmds = g_strsplit(autocmd, " ", -1);
autocmds_free = autocmds;
while (*autocmds) {