Gears

Desktop API

var desktop = google.gears.factory.create('beta.desktop');

desktop.createShortcut('Test Application',
                       'http://example.com/index.html',
                       {'128x128': 'http://example.com/icon128x128.png',
                          '48x48': 'http://example.com/icon48x48.png',
                          '32x32': 'http://example.com/icon32x32.png',
                          '16x16': 'http://example.com/icon16x16.png'},
                       'An application at http://example.com/index.html');

function openFilesCallback(files) {
    //Typically, here you would open the appropriate URL
  alert('User selected ' + files.length + ' files.');
}
desktop.openFiles(openFilesCallback);

José M. Vidal .

8 of 20