<div dir="ltr">Hi Vincent,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 31, 2018 at 12:07 PM,  <span dir="ltr"><<a href="mailto:Vincent.Blondeau@lamresearch.com" target="_blank">Vincent.Blondeau@lamresearch.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I would like to know how to change the main Pharo window icon. I saw that there is a primitive for the title:<br>
DisplayScreen class  >> primitiveWindowTitle:string: ; primitive: 'primitiveHostWindowTitle' module:'HostWindowPlugin'<br>
but I cannot find one for the icon.<br>
Should another primitive need to be implemented?<br></blockquote><div><br></div><div>The icon is baked into the VM executable.  So to change it one has to build a VM with a different icon.</div><div><br></div><div>On Windows it is in</div><div>    {build.win32x86,build.win64x64}/pharo.cog.spur/Pharo.ico</div><div>and the file that specifies to use Pharo.ico is</div><div>    {build.win32x86,build.win64x64}/pharo.cog.spur/Pharo.rc<br></div><div><br></div><div>On Mac OS X it is in</div><div>    platforms/iOS/vm/OSX/Pharo.icns</div><div>(alongside three others such as PharoImage.icns)</div><div>and the file that specifies to use Pharo.icns is</div>    {build.macos32x86,build.macos64x64}/pharo.cog.spur/Makefile</div><div class="gmail_quote">in setting the VM variable.  The file that associates the other icons with specific file types is </div><div class="gmail_quote">    platforms/iOS//vm/OSX/Pharo-Info.plist</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you're changing the Pharo icon let me suggest you update the icon files themselves in the opensmalltalk-vm source tree.</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you're creating a new variant of the VM for some new purpose (say a special Lam VM) then let me suggest you add the icons to the opensmalltalk-vm source tree, creating special build directories for these VMs, such as {build.macos32x86,build.macos64x64}/lam.pharo.cog.spur/</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you want to do this privately, then take either of the approaches above and simply don't publish the edits.  You can write a script that takes an updated checked-out opensmalltalk-vm source tree and edits it with files from a specific repository.  I have such scripts and can help you with them.  Hint, pax is a very convenient directory hierarchy copying tool available at least on Mac OS X.  pax -rwlk will copy the trees under a sequence of directories into their corresponding places in a target tree.</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Thanks!<br>
<br>
Vincent<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>