[PD-dev] [ pure-data-Patches-3234958 ] add gui preferences system via conf files

SourceForge.net noreply at sourceforge.net
Mon May 2 17:20:04 CEST 2011


Patches item #3234958, was opened at 2011-03-22 16:11
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3234958&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: puredata
Group: feature
>Status: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: gusano (elgusanorojo)
Assigned to: Nobody/Anonymous (nobody)
Summary: add gui preferences system via conf files

Initial Comment:
this patch adds a gui-preferences system, right now for recent files only.
recently opened files are written in the user-app-config directory (i.e. ~/.config/pure-data/recentfiles.conf on linux) and read when pd launches.
this was tested on linux and osx only (I don't have access to a win32 machine).
see the following related threads:
http://www.mail-archive.com/pd-dev@iem.at/msg09330.html
http://www.mail-archive.com/pd-dev@iem.at/msg09351.html

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

>Comment By: SourceForge Robot (sf-robot)
Date: 2011-05-02 15:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: gusano (elgusanorojo)
Date: 2011-04-18 15:32

Message:
I forgot to include 2 small fixes in the patch, new one uploaded

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

Comment By: Miller Puckette (millerpuckette)
Date: 2011-04-18 14:45

Message:
thanks... worked that time.

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

Comment By: gusano (elgusanorojo)
Date: 2011-04-18 10:11

Message:
it didn't apply because of some changes in po/Makefile.am since this patch
was submitted.
I just uploaded an updated patch.

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

Comment By: Miller Puckette (millerpuckette)
Date: 2011-04-18 01:33

Message:
I couldn't apply this to 0.43.. (failed on po/Makefile.am - I couldn't
figure
out why).

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

Comment By: gusano (elgusanorojo)
Date: 2011-03-29 14:01

Message:
I finally found the time to make a new patch:
- added support for osx preferences and windows registry
- new file is now added to recentfiles if it's saved
- better error handling
- better doc (pd_guiprefs)
- bugfix 3192731
(http://sourceforge.net/tracker/?func=detail&aid=3192731&group_id=55736&atid=478070)

the patch was tested on archlinux, ubuntu10.10 and osx 10.5.8
on windows I could only test the registry stuff in a tclsh prompt, please
test !

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

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2011-03-24 04:44

Message:
This is looking good, I just have a couple comments:

- I think you should manually edit pkgIndex.tcl.  the script made a bunch
of changes, that are not really relevant and might affect other things. 
You just need to add a single line for pd_guiprefs.tcl

- preferences on Mac OS X are stored in ~/Library/Preferences rather than
~/Library/Application Support/pure-data.  Ideally, this patch would also
use the terminal tool 'defaults read' and 'defaults write' to create a
proper Mac OS X .plist preferences file.  Its not hard to do, you can see
how Pd currently does it in pd/src/s_file.c.  Windows needs to use the
registry, that's even easier because Tcl has the built -in 'registry'
command.


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

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



More information about the Pd-dev mailing list