Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 10 of 10

This is a discussion on parameter.txt within the Chrome Tech section, part of the Chrome Chat category: has anyone thought of creating a parameter.txt for dev Chrome where command lines can be added to it instead of ...


  1. #1
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default parameter.txt

    has anyone thought of creating a parameter.txt for dev Chrome where command lines can be added to it instead of adding them to the shotcut?

  2. #2
    sarjoor is offline Senior Member
    Join Date
    Sep 2009
    Posts
    147

    Default

    Related to this, Chrome has the following open issues relating to registry setting of preferences, especially relating to enterprise installations of Chrome:

    http://crbug.com/19374 - Add support for reading preferences from registry as well as Preferences file

    http://crbug.com/19380 - Need to change command-line flags to be preferences

  3. #3
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    I am not sure about the current version of dev Chrome but previous versions do not write to the registry at all

  4. #4
    StevePaul's Avatar
    StevePaul is offline Senior Member
    Join Date
    Mar 2009
    Location
    Birmingham, England
    Posts
    1,522

    Default

    @sul

    I beg to differ, previous versions of Chrome (and indeed this one) did write to the registry ...

    For instance if you start Chrome from the Start Menu none of your 'command line' properties work ...

    This original Thread refers ...

    Enable Extensions - Start Menu and Hyperlinks

  5. #5
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    And if your going to be editing the registry and use gmail you may aswell add this....
    http://andrewsreflections.blogspot.c...hrome-and.html

  6. #6
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    Dev Chrome is the browser by dafault in WinXP and I can't detect any keys in the Registry created by installation of Chrome, although there are references to Chrome

    found this extension for using gmail/chrome

    https://chrome.google.com/extensions...iddhdapjpbgeoc
    Last edited by sulasno; 12-19-2009 at 09:26 AM.

  7. #7
    mg2's Avatar
    mg2
    mg2 is offline Senior Member
    Join Date
    Jun 2009
    Location
    Karlsruhe, Germany, Europe
    Posts
    328

    Default

    Can you tell me more about this parameter.txt file pls. Where should it be created, what to write inside, some useful links etc. ...
    BETTER GMAIL for Google Chrome

    Win7 RC1
    Google Chrome Dev latest version

  8. #8
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    I found reference to this file from http://stadt-bremerhaven.de/;
    they have a version of portable where a Chrome loader will load the file before loading Chrome; I tried adding this file and ChromeLoader from the site to my portable Chrome but it didn't work;

    I think there is another version of portable Chrome that uses a configuration.ini

    example of the file would contain the following;;

    --user-data-dir=Profi
    --bookmark-menu
    -pinned-tab-count=10
    --purge-memory-button
    --enable-local-storage

  9. #9
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    If you have .NET then maybe this would help....
    chromestart.zip
    ....and heres an example parameters.txt file...
    parameters.txt

    Just put parameters.txt in the same directory as chromestart.exe.
    The first line is what exe to run and ever line after it is an argument.
    Its not called chrome and then run chrome2.exe because that worked with everything except application shortcuts and Im not sure why?
    Anyways its something to try.

    Oh and this is a compiled Jscript.NET, heres the meager code....
    Code:
    import System;
    import System.IO;
    import System.Diagnostics;
    
    var parameters:String='';
    var SR:StreamReader = File.OpenText("parameters.txt");
    var program:String = SR.ReadLine().ToString();
    var args = System.Environment.GetCommandLineArgs();
    
    for (var i = 1; i<args.length; i++)
      { 
      parameters +=' '+args[i];
      }
    
    while (SR.Peek() != -1)
      {
      parameters += ' '+SR.ReadLine();
      }
    
    SR.Close();
    // Console.WriteLine(parameters);
    //var p = new Process();
    //p.StartInfo.Arguments = parameters;
    //p.StartInfo.WorkingDirectory = "C:\Documents and Settings\Admin\Local Settings\Application Data\Google\Chrome\Application";
    //p.StartInfo.FileName = "chrome.exe";
    //p.Start(p.StartInfo);
    Process.Start(program, parameters);
    ....and instructions on how to compile it.....
    http://www.phpied.com/make-your-java...a-windows-exe/

    Actually it does work with application shortcuts if you change the shortcut to point to chromestart.exe.....might be because I have it installed or something i dont know
    Last edited by PAEz; 12-25-2009 at 10:17 AM.

  10. #10
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    thanks for sharing the info

    Edit
    I am going to learn how to alter chromestart.zip
    since I got to change this line
    Code:
    //p.StartInfo.WorkingDirectory = "C:\Documents and Settings\Admin\Local Settings\Application Data\Google\Chrome\Application";
    to
    Code:
    //p.StartInfo.WorkingDirectory = "%userprofile%\desktop\ChromeBeta\Chrome
    Last edited by sulasno; 12-25-2009 at 10:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •