Giter Site home page Giter Site logo

Comments (5)

sihorton avatar sihorton commented on June 29, 2024

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.

negue avatar negue commented on June 29, 2024

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.

sihorton avatar sihorton commented on June 29, 2024

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.

negue avatar negue commented on June 29, 2024

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.

sihorton avatar sihorton commented on June 29, 2024

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)

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.