3
public class RecentFiles : Gazette.Service {
6
base (_("Files"), "x-office-document");
8
this.container.attach (new Gtk.Label (_("No settings yet.")), 0, 0, 1, 1);
11
public override void run (File file){
15
FileUtils.get_contents (file.get_path (), out content);
16
}catch (Error e){warning (e.message);}
18
var command = "xdg-open 'http://www.wikipedia.org/wiki/"+content+"'";
22
Process.spawn_command_line_sync (command, out ret);
23
}catch (Error e){error (e.message);}