os-js / OS.js

OS.js - JavaScript Web Desktop Platform

Home Page:https://www.os-js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autostarting widgets

mr0rogers opened this issue · comments

Applications can be set to autostart on login in their metadata.json files. Is it possible to create a widget that starts by default for all users? If not, how would one go about doing this?

There is no setting for this like in applications. But I think you can achieve this by using the following in your config.

This will create a set of defaults for all users:

{

  settings: {
    defaults: {
      'osjs/desktop': {
        widgets: [
          {
            name: "WidgetName",
            options: {}
          }
        ]
    }
  }
}

Yep, that works. Thanks!