| 377 int argc; |
377 int argc; |
| 378 int i; |
378 int i; |
| 379 |
379 |
| 380 argv = g_application_command_line_get_arguments(cmdline, &argc); |
380 argv = g_application_command_line_get_arguments(cmdline, &argc); |
| 381 |
381 |
| |
382 if (argc == 1) { |
| |
383 /* No arguments, just activate */ |
| |
384 g_application_activate(application); |
| |
385 } |
| |
386 |
| 382 /* Start at 1 to skip the executable name */ |
387 /* Start at 1 to skip the executable name */ |
| 383 for (i = 1; i < argc; ++i) { |
388 for (i = 1; i < argc; ++i) { |
| 384 purple_got_protocol_handler_uri(argv[i]); |
389 purple_got_protocol_handler_uri(argv[i]); |
| 385 } |
390 } |
| 386 |
391 |