[PD-dev] [ pure-data-Feature Requests-1412443 ] minor changes to support env vars on Windows

SourceForge.net noreply at sourceforge.net
Mon Jan 23 03:05:23 CET 2006


Feature Requests item #1412443, was opened at 2006-01-22 21:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478073&aid=1412443&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Nobody/Anonymous (nobody)
Summary: minor changes to support env vars on Windows

Initial Comment:

It would be quite handy if the Pd preferences system
could use Win32's environment variables, like
%ProgramFiles%, etc.  This makes life easier when
distributing to multiple localizations, where
%ProgramFiles% can be "C:\Program Files",
"C:\Programme", etc.

There are a few minor changes.  First, use
REG_EXPAND_SZ instead of REG_SZ as the storage type for
registry values that store a path (path* and loadlib*).
 There is probably no harm in replacing REG_SZ with
REG_EXPAND_SZ everywhere.

For complete support, two additional functions are
needed:  PathUnExpandEnvStrings() and
ExpandEnvironmentStrings().  

- In sys_getpreference, ExpandEnvironmentStrings()
should be used after reading from the registry.

- in sys_putpreference, PathUnExpandEnvStrings() should
be used before writing to the registry.

It'll probably be needed elsewhere, but I don't
understand the whole flow of the preferences yet.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478073&aid=1412443&group_id=55736




More information about the Pd-dev mailing list