shell-app: Add "discrete_gpu" option when launching apps

And adapt existing callers to the new API. This will allow us to
implement a way to launch applications on the discrete GPU for systems
where an "Optimus" system exists.

https://bugzilla.gnome.org/show_bug.cgi?id=773117
This commit is contained in:
Bastien Nocera
2016-10-19 15:43:37 +02:00
parent 56d0d7253b
commit 39a840e2c3
7 changed files with 13 additions and 7 deletions

View File

@ -297,7 +297,7 @@ const RemoteSearchProvider = new Lang.Class({
// the provider is not compatible with the new version of the interface, launch
// the app itself but warn so we can catch the error in logs
log('Search provider ' + this.appInfo.get_id() + ' does not implement LaunchSearch');
this.appInfo.launch([], global.create_app_launch_context(0, -1));
this.appInfo.launch([], global.create_app_launch_context(0, -1), false);
}
});