os-js / osjs-client

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

Add 'default application' for MIME types #63

Closed andersevenrud closed 5 years ago

andersevenrud commented 5 years ago

This was implemented in v2.

It was just a checkbox in the dialog that set a settings entry.

The Settings namespace osjs/applications could be used with the entry defaultMimeApplication which is just a Dictionary of {mime: packageName}.

andersevenrud commented 5 years ago

The method Core#open is what needs to check this setting, and the dialog itself can just reset the option.

Settings application needs an interface for this, and the Choice dialog needs a checkbox.

The FileManager application also needs a contextmenu to bring up this dialog, which could be an option parameter for Core#open.

andersevenrud commented 5 years ago

References for other repos: