6 new and 3 modified patches. All via New Portal.
[webos-internals:imagineer1981s-modifications.git] / app-launcher / app-launcher-launcher-auto-popup.patch
1 Name: Launcher Auto-Popup
2 Version: 1.3.5-1
3 Author: Jason Robitaille
4 Description: Will bring up launcher on system boot. Also, upon turning the screen on, if no cards are in focus, the launcher will pop up.  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7 +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8 @@ -58,6 +58,10 @@
9                 this.storageInit();
10                 
11                 //Initialize and Subscribe for Power Off Notification.
12 +               this.controller.serviceRequest('palm://com.palm.systemmanager', {
13 +                       method: 'systemUi',
14 +                       parameters: {launcher:true}
15 +               });
16                 this.powerOffInit();
17                 
18                 //Subscribe to Powerd Notification.
19 @@ -2318,6 +2322,22 @@
20                 },
21                 onSuccess: this.powerOffHandleNotifications.bind(this)
22         });
23 +    this.displayChanged = this.controller.serviceRequest('palm://com.palm.display/control', {
24 +               method:'status',
25 +               parameters:{
26 +                       subscribe:true
27 +               },
28 +               onSuccess: function(response) {
29 +                       if(response && response.event) {
30 +                               if(response.event=="displayOn" && this.foregroundAppID==null) {
31 +                                       this.controller.serviceRequest('palm://com.palm.systemmanager', {
32 +                                               method: 'systemUi',
33 +                                               parameters: {launcher:true}
34 +                                       });
35 +                               }
36 +                       }
37 +               }.bind(this)
38 +       });
39  },
40  
41