Simplify access to the search settings
Many users report they don't know how to make Games list their games, and it is often because the directory where they put their games is no tracked by Tracker. The suggested solution is to add their games directory to the global search sources via the Settings application.
To make this more discoverable we could add a shortcut to the search settings somewhere in the preferences similarly to how Contacts does for the GOA settings:
[GtkCallback]
private void on_goa_button_clicked () {
try {
var proxy = new DBusProxy.for_bus_sync (BusType.SESSION,
DBusProxyFlags.NONE,
null,
"org.gnome.ControlCenter",
"/org/gnome/ControlCenter",
"org.gtk.Actions");
var builder = new VariantBuilder (new VariantType ("av") );
builder.add ("v", new Variant.string (""));
var param = new Variant.tuple ({
new Variant.string ("launch-panel"),
new Variant.array (new VariantType ("v"), {
new Variant ("v", new Variant ("(sav)", "online-accounts", builder))
}),
new Variant.array (new VariantType ("{sv}"), {})
});
proxy.call_sync ("Activate", param, DBusCallFlags.NONE, -1);
} catch (Error e) {
// TODO: Show error dialog
warning ("Couldn't open online-accounts: %s", e.message);
}
}
Edited by Adrien Plazas