GithubHelp home page GithubHelp logo

webmanifest support about gluon HOT 7 CLOSED

ThaUnknown avatar ThaUnknown commented on August 10, 2024
webmanifest support

from gluon.

Comments (7)

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Have you checked if this already works? Unsure if launching a site with --app would use it or if it's installed only.

from gluon.

ThaUnknown avatar ThaUnknown commented on August 10, 2024

@CanadaHonk yes this works, but it's INSANELY specific
[assumption] the app-id is a hash of: site URL, profile name and profile location
this worked when I did this for startBrowser:

export default async ({ browserName, browserPath, dataPath }, { url, windowSize }) => {
  return await StartBrowser(browserPath, [
    `--app-id=mjoklplbddabcmpepnokjaffbmgbkkgg`,
    `--remote-debugging-pipe`,
    windowSize ? `--window-size=${windowSize.join(',')}` : '',
    ...`--new-window --disable-extensions --disable-default-apps --disable-breakpad --disable-crashpad --disable-background-networking --disable-domain-reliability --disable-component-update --disable-sync --disable-features=AutofillServerCommunication ${presets.perf}`.split(' ')
  ], 'stdio', { browserName });
};

I had to remove --profile-directory=Default and the dataPath option for it to work.
End result:
image
Respecting webmanifest it has a custom title bar color and the chrome controls, sick!
Here's what I did [brave]
For github:
image
make sure to check Open as window
image
went to desktop and got app id from the launch parameters of the nearly created shortcut
"C:\Program Files\BraveSoftware\Brave-Browser\Application\chrome_proxy.exe" --profile-directory=Default --app-id=mjoklplbddabcmpepnokjaffbmgbkkgg
this doesn't actually have to be chrome_proxy, it can just be chrome.exe [brave.exe in this case]

So I assume for this work gluton would need so somehow create an app like the shortcut thing did, and launch it from the same path and profile that created the app, no clue exactly how to do this

this is great as it decreases the workload of managing these features by a mile, especially stuff like custom title bars across different operating systems which frameworks like tauri struggle with a LOT and potentially allows us to re-use features like launch on startup which chromium has already implemented

F firefox support ;P

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

I meant already possible i.e. --app already handles webmanifest/PWA features without requiring an --app-id or install haha, but good info nevertheless.

from gluon.

ThaUnknown avatar ThaUnknown commented on August 10, 2024

I meant already possible i.e. --app already handles webmanifest/PWA features without requiring an --app-id or install haha, but good info nevertheless.

yes but app-id install enables PWA features, --app doesn't, it only does some webmanifest things, but not all

from gluon.

ThaUnknown avatar ThaUnknown commented on August 10, 2024

notable issue: installable PWAs sometimes get unregistered across updates so the app-id would likely need to be re-registered after each startup

this also doesn't solve the issue of API's such as FileHandlingAPI and WebShareTargetAPI, as either: A the file handle won't be forwarded to the browser via the launchQueue or the node wrapper won't launch alongside the app, hmmm

from gluon.

ThaUnknown avatar ThaUnknown commented on August 10, 2024

documenting: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/windows_pwa_integration.md#file-handling-support

from gluon.

CanadaHonk avatar CanadaHonk commented on August 10, 2024

Closing as Firefox has no support, so would introduce major compatibility issues. Possible to revisit in future if/when isolated web apps become more of a standard.

from gluon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.