personium / app-cc-home

Demo page
http://personium.io/demo/home-app/
Apache License 2.0
2 stars 5 forks source link

App installed by bar file installation cannot be launched when default box name is not used #104

Closed dixonsiu closed 6 years ago

dixonsiu commented 6 years ago

Current implementation.

  1. Get box list in cell
  2. Get schema URL of box
  3. Access the schema URL and get launch.json
  4. Get the launch path (contains default box name) from the "web" key
  5. file not find error

Proposed solution.

  1. Add a new key/value pair (e.g. "target": "/src/login.html") to launch.json

New implementation.

  1. Get box list in cell
  2. Get schema URL of box
  3. Access the schema URL and get launch.json
  4. Get the launch path (contains default box name) from the "web" key
    If "personium-localbox:" is found, convert to local user's URL + Box name
    ~If "target" key exists, compose the launch path (e.g. sessionStorage.targetCellUrl + "/{UserDefinedBoxName}/src/login.html").~
    ~If "target" key doesn't exist, get the launch path from the "web" key~
dixonsiu commented 6 years ago

Shimono-san's advice is to use the following URL scheme.

"web": "personium-localbox:/src/login.html"