Comments (7)
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.
@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:
Respecting webmanifest it has a custom title bar color and the chrome controls, sick!
Here's what I did [brave]
For github:
make sure to check Open as window
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.
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.
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.
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.
from gluon.
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)
- Window events
- Custom useragent HOT 1
- How do I package a Gluon app as a native exectuable? HOT 1
- Sample app crashing HOT 3
- HTTPS required for gluon apps? HOT 5
- Change behavior of deno branch to create 'gluon_data/chrome' in current directory HOT 1
- Thorium as a recommended gluon brower-base HOT 5
- Switch CDP -> WebDriver BiDi
- IPC will not be available after page refresh HOT 1
- Error on startup of first example HOT 6
- Links that open in new tab, don't open new browser in firefox, while in edge they do
- Add brower support
- Possible to Use Bundled Wep App (e.g. Vue) Instead of URL HOT 1
- Automatic browser failure fallback
- System installer
- CDP reply error.
- Using gluon on existing Node.js app
- ReCaptcha v2 doesnt work HOT 1
- Browser unsupported for nextcloud server site HOT 1
- Project Status HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluon.