<div dir="ltr">Hi Stef,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 2, 2018 at 11:32 AM, Stephane Ducasse <span dir="ltr"><<a href="mailto:stepharo.self@gmail.com" target="_blank">stepharo.self@gmail.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">Would it be possible to change the icon without having to compile a new VM?<br></blockquote><div><br></div><div>Through an AppleScript:</div><div><br></div><div>e.g. <a href="https://www.sethvargo.com/replace-icons-osx/">https://www.sethvargo.com/replace-icons-osx/</a></div><div> </div><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">
To me the current setup looks so monolithic and dated.<br>
I would expect that somebody can deploy a application with its own<br>
logo by just providing some new resources.<br></blockquote><div><br></div><div>And that's indeed possible.  Take the .app bundle and change the .icns file as described above.</div><div> </div><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>
Stef<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
On Wed, Jan 31, 2018 at 11:17 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
> Hi Vincent,<br>
><br>
> On Wed, Jan 31, 2018 at 12:07 PM, <<a href="mailto:Vincent.Blondeau@lamresearch.com">Vincent.Blondeau@lamresearch.<wbr>com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I would like to know how to change the main Pharo window icon. I saw that<br>
>> there is a primitive for the title:<br>
>> DisplayScreen class  >> primitiveWindowTitle:string: ; primitive:<br>
>> 'primitiveHostWindowTitle' module:'HostWindowPlugin'<br>
>> but I cannot find one for the icon.<br>
>> Should another primitive need to be implemented?<br>
><br>
><br>
> The icon is baked into the VM executable.  So to change it one has to build<br>
> a VM with a different icon.<br>
><br>
> On Windows it is in<br>
>     {build.win32x86,build.<wbr>win64x64}/pharo.cog.spur/<wbr>Pharo.ico<br>
> and the file that specifies to use Pharo.ico is<br>
>     {build.win32x86,build.<wbr>win64x64}/pharo.cog.spur/<wbr>Pharo.rc<br>
><br>
> On Mac OS X it is in<br>
>     platforms/iOS/vm/OSX/Pharo.<wbr>icns<br>
> (alongside three others such as PharoImage.icns)<br>
> and the file that specifies to use Pharo.icns is<br>
>     {build.macos32x86,build.<wbr>macos64x64}/pharo.cog.spur/<wbr>Makefile<br>
> in setting the VM variable.  The file that associates the other icons with<br>
> specific file types is<br>
>     platforms/iOS//vm/OSX/Pharo-<wbr>Info.plist<br>
><br>
> If you're changing the Pharo icon let me suggest you update the icon files<br>
> themselves in the opensmalltalk-vm source tree.<br>
><br>
> If you're creating a new variant of the VM for some new purpose (say a<br>
> special Lam VM) then let me suggest you add the icons to the<br>
> opensmalltalk-vm source tree, creating special build directories for these<br>
> VMs, such as {build.macos32x86,build.<wbr>macos64x64}/lam.pharo.cog.<wbr>spur/<br>
><br>
> If you want to do this privately, then take either of the approaches above<br>
> and simply don't publish the edits.  You can write a script that takes an<br>
> updated checked-out opensmalltalk-vm source tree and edits it with files<br>
> from a specific repository.  I have such scripts and can help you with them.<br>
> Hint, pax is a very convenient directory hierarchy copying tool available at<br>
> least on Mac OS X.  pax -rwlk will copy the trees under a sequence of<br>
> directories into their corresponding places in a target tree.<br>
><br>
>><br>
>> Thanks!<br>
>><br>
>> Vincent<br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> _,,,^..^,,,_<br>
> best, Eliot<br>
<br>
</div></div></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>