os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
31 stars 32 forks source link

[Request] Singular applications #4

Closed aherreraGH closed 6 years ago

aherreraGH commented 6 years ago

In metadata.json I have:

"singular": true, "autostart": true,

The package/app is not starting up when launching the server. I think there was a setting for turning of resizing of the window, can't seem to find that either, I did see win.setSize() functions though - maybe I looked in the wrong part of the new docs?

andersevenrud commented 6 years ago

I've updated https://manual.os-js.org/v3/tutorial/application/ with the now named singleton property that you can set in your metadata.

I can add support for autostart as well.

andersevenrud commented 6 years ago

Corrected a typo. Ops!

andersevenrud commented 6 years ago

From Gitter:

In your src/client/index.js file: osjs.on('osjs/core:started', () => osjs.run('MyApplication'));

This will autostart any application whenever OS.js has started.

andersevenrud commented 6 years ago

Oh, sorry. It's osjs.launch() not .run() :sweat_smile:

andersevenrud commented 6 years ago

I've published a new version of @osjs/client that adds support for the autostart metadata attribute.

Documentation has been updated as well.

Please note, for this update, you have to update @osjs/panels as well.

aherreraGH commented 6 years ago

Thank you, works well!