Comments (5)
We are using an "off-the-shelf" chrome so it will phone home and do various stuff. The following site lists all of the available flags: http://peter.sh/experiments/chromium-command-line-switches/
In the future we will be able to switch to a CEF / CEF3 based browser. Ingwie is working with appjs and will compile a custom version at some point in the future.
Deskshell just boots off chrome so we can switch to a different browser binary if you can find one that is better (and can give us an app like experience).
from appjs-deskshell.
Is it possible to change the commandline flags during "compilation" to an app.exe? Or with some other Config?
If so, i would like to try some flags out, and then post my results.
from appjs-deskshell.
The flags are set in node_modules\deskshell-api\index.js (written in javascript) the exe uses that code to launch the chrome binary so you can change and see the effects immediately. Search for chromiumPath. The code is slightly messy but you can add additional array entries after '--disable-translate' (each entry should be a flag that will be sent), or you could change the following line that actually sends all of the flags:
app.chromium = require('child_process')
.exec('"'+app.params['chromiumPath']+'" '+app.params['chromiumCmd'].join(' '),function(error, stdout, stderr) {
if (error) console.log("chromium exec error:"+error);
});
and just hardcode the flags you want to send. If we cannot fix the problem we can try changing the chrome build we are using or switch to using a different browser.
from appjs-deskshell.
Great, gonna try it later with the index.js, but I think in the future it would be the best to be able to change all frontend custom flags inside the *.desk Config. e.g. "frontendParams" / "frontendFlags"
from appjs-deskshell.
Ah yes I had forgotten about that, I have already added support for that. Add the following in your .desk file:-
,chromiumFlags:[
'--flag1'
,'--flag2'
]
That will pass along the --flag1 and --flag2 in addition to the other flags.
from appjs-deskshell.
Related Issues (20)
- Compiling Windows .exe stuck on compiling app.nsi HOT 12
- Chrome crashes when running the app
- Kiosk app .exe close button not working
- Use built-in webkit browser instead of using chrome HOT 1
- Portable Windows Hello World not running
- Local node_modules HOT 1
- Use Chromium instead of Chrome HOT 1
- Running Deskshell only runs a Chromium Browser HOT 1
- How to debug packaged executable? HOT 16
- Your website is broken HOT 13
- deskshell.exe source code HOT 1
- zip on website is broken
- How to Digitally sign the Package HOT 1
- Your website deskshell.org is offline... HOT 6
- socket.io.js not found HOT 1
- Downloads broken? HOT 7
- Creating an app with a static port?
- Would this work on a non-gui operating system ?
- Is this project still actively developed? HOT 2
- Nothing happens in deskshell 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 appjs-deskshell.