dlg.title = "feedhandler received a URL";
dlg.vbox.add(new Gtk.Label(url));
dlg.show_all();
- dlg.run();
+ if (dlg.run() == Gtk.ResponseType.YES) {
+ /* Example code for launching a RSS application */
+ try {
+ GLib.Process.spawn_async(null,
+ {"gpodder",
+ "--fremantle",
+ "-s",
+ url}, null, GLib.SpawnFlags.SEARCH_PATH, null, null);
+ } catch (GLib.SpawnError e) {
+ stderr.printf("Can't launch: %s\n", e.message);
+ }
+ }
dlg.destroy();
message("URL received: %s", url);
loop.quit();