More winecfg todos

Saulius Krasuckas saulius2 at
Tue Aug 17 08:44:40 CDT 2004

On Tue, 17 Aug 2004, Mike Hearn wrote:
> > Again, this may be need by power-win32-users, who basically can't stand
> > the GUI of "regedit". :-P
> By definition, Windows power users are comfortable with the registry, as 
> how else did they get to be power users in the first place?

Ughm, maybe I meant not-so-power users? :-/ 

Yes they are comfortable with browsing the registry, but they aren't such
with editing it.  At least I am not.

> > PS maybe an alternative for the "winecfg" may be some cmd-line option like
> > the "/advanced" to make such functionality available to user at run-time?
> No, a totally undiscoverable "advanced" mode is worse than just regedit. 

Ok, I agree.  That is a M$ way.  It is not nice.

> Even an "advanced" button is bad: this sort of UI thinking is not one we 
> wish to copy IMHO.

Button is wrong definitely, it is not needed for the most of the users.  
And some additional edit-boxes 

> Sorry, but I don't see what your hangup over the registry is. Remember 
> the .reg files are plain text! You can edit them in whatever editor you 
> like (as long as no wine processes are running at the time, of course).

Right, I am forgetting about this.  And the difference is in the size of
the files:

[s2 at katleriai SRPMS]$ wc -l ~/.wine/config ~/.wine/system.reg 
    256 /home/s2/.wine/config
   4946 /home/s2/.wine/system.reg
   5202 total

Text editor for the registry tweaking isn't an easy choice for me, because
I don't like searching for one particular line through the 5000 of others.

What then should I do walking this way is:

1, to export file;
2, to edit it;
3, import it back.

Or in a bash-awk code:

PATH_BRANCH='HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment'
AWK_APPEND_NPATH='{if (match($0,/^"PATH"=/)) sub(/"\r/, ";"ENVIRON["NPATH"]"\""); print}'

if [[ "$1" == "" ]]; then {
  echo Example of a usage : $0 \'$NPATH\'
  exit 1
} fi

if regedit /E $PATH_REG "$PATH_BRANCH"; then {
   export NPATH="$1"
   if cat     $PATH_REG | awk "$AWK_APPEND_NPATH" > $PATH_REG; then {
      regedit $PATH_REG
      cat     $PATH_REG | grep ^\"PATH | xargs echo "Setting this: "
      rm      $PATH_REG
   } fi
   unset NPATH
} fi

More information about the wine-devel mailing list