diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in
index cf2e79008..dc27e4781 100644
--- a/data/org.gnome.shell.gschema.xml.in.in
+++ b/data/org.gnome.shell.gschema.xml.in.in
@@ -37,6 +37,13 @@
application view, rather than being displayed inline in the main view.
+
+ 0
+ App Picker View
+
+ Index of the currently selected view in the application picker.
+
+
[]
<_summary>History for command (Alt-F2) dialog
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index f9c585982..22e805a70 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -744,10 +744,15 @@ const AppDisplay = new Lang.Class({
this._views[i].control.connect('clicked', Lang.bind(this,
function(actor) {
this._showView(viewIndex);
+ global.settings.set_uint('app-picker-view', viewIndex);
}));
}
+ let initialView = Math.min(global.settings.get_uint('app-picker-view'),
+ this._views.length - 1);
let frequentUseful = this._views[Views.FREQUENT].view.hasUsefulData();
- this._showView(frequentUseful ? Views.FREQUENT : Views.ALL);
+ if (initialView == Views.FREQUENT && !frequentUseful)
+ initialView = Views.ALL;
+ this._showView(initialView);
this._updateFrequentVisibility();
// We need a dummy actor to catch the keyboard focus if the