<div dir="ltr">Yes, I think that's the first case but I surely need to better understand this part of the code. In fact, I have no idea what is considered as part of the GUI or not... I mean, in my case, I don't really have a graphical interface but I would like to get the informations of the objects that depends on the font sizes. If I don't call sys_fakefromgui(), I get a division by zero somewhere because the font sizes are not initialized (and perhaps there are other errors but I don't reach these parts of the code). Anyway with the previous version of Pd I didn't have to call this function so didn't really look at that but now I would like to know what it really does and if there is a proper way to initialize this part of Pd.<div><br></div><div>Thanks!<br></div><div>Pierre</div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-15 19:36 GMT+02:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do I understand correctly that you're trying to run libpd _without_ the<br>
GUI and discovering that you have to copy code from sys_fakefromgui() to<br>
get it to work?<br>
<br>
Or, rather, are you actually trying to start the GUI up and need to know<br>
the path to the GUI files?<br>
<br>
In the latter case, I was tacitly assuming that people distributing libpd<br>
apps that wanted to be able to use Pd's GUI would bundle the entire Pd<br>
GUI package (Wish, pd/tcl, pd/po, probably more) with their installation,<br>
as different libpd apps might require different versions.<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Sat, Jul 15, 2017 at 04:30:16PM +0200, Pierre Guillot wrote:<br>
> Hi all,<br>
><br>
> I started to update my project zpd [1] with the last version of Pd (before<br>
> testing the new features in libpd) but I don't really understand how the<br>
> function sys_startgui() should be used and what it does [2] . In the<br>
> Miller's branch of libpd, the example [3] use a relative path but I don't<br>
> know what is the path to my application and what should be the target of<br>
> the path. I asked on GitHub and Dan explained me that I should give the<br>
> path to the tcl scripts to start the Pd GUI but what if I don't have Pd<br>
> installed? The solution I found for the moment is to copy the static<br>
> function sys_fakefromgui() [4] but it's dirty and not very sustainable.<br>
><br>
> Anyone has a solution?<br>
> Best,<br>
><br>
> Pierre<br>
><br>
> [1] <a href="https://github.com/pierreguillot/zpd" rel="noreferrer" target="_blank">https://github.com/<wbr>pierreguillot/zpd</a><br>
> [2] <a href="https://github.com/pure-data/pure-data/blob/master/src/s_inter.c#L1377" rel="noreferrer" target="_blank">https://github.com/pure-data/<wbr>pure-data/blob/master/src/s_<wbr>inter.c#L1377</a><br>
> [3]<br>
> <a href="https://github.com/libpd/libpd/pull/171/files/ddd6ef004c00ca41f1834fcb5bf5f72f972bc20d..35e4272a2c3ba610836fa4cdff3bea99dac815fb#diff-44ec7e62314f045847d1166bd74411b5R77" rel="noreferrer" target="_blank">https://github.com/libpd/<wbr>libpd/pull/171/files/<wbr>ddd6ef004c00ca41f1834fcb5bf5f7<wbr>2f972bc20d..<wbr>35e4272a2c3ba610836fa4cdff3bea<wbr>99dac815fb#diff-<wbr>44ec7e62314f045847d1166bd74411<wbr>b5R77</a><br>
> [4]<br>
> <a href="https://github.com/libpd/libpd/pull/171/files/ddd6ef004c00ca41f1834fcb5bf5f72f972bc20d..35e4272a2c3ba610836fa4cdff3bea99dac815fb#diff-44ec7e62314f045847d1166bd74411b5R77" rel="noreferrer" target="_blank">https://github.com/libpd/<wbr>libpd/pull/171/files/<wbr>ddd6ef004c00ca41f1834fcb5bf5f7<wbr>2f972bc20d..<wbr>35e4272a2c3ba610836fa4cdff3bea<wbr>99dac815fb#diff-<wbr>44ec7e62314f045847d1166bd74411<wbr>b5R77</a><br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> Pd-dev mailing list<br>
> <a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
> <a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-dev</a><br>
<br>
</blockquote></div><br></div>