<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/pymol/patches/" rel="alternate"/><link href="https://sourceforge.net/p/pymol/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/pymol/patches/</id><updated>2017-12-21T13:00:05.697000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/?limit=25#f8dc" rel="alternate"/><published>2017-12-21T13:00:05.697000Z</published><updated>2017-12-21T13:00:05.697000Z</updated><author><name>Thomas Holder</name><uri>https://sourceforge.net/u/speleo3/</uri></author><id>https://sourceforge.netea5cd67c22c7e92285323358511abd57edbac166</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I haven't gotten any feedback on my revised patch (tk-aqua-v2.patch). Is there still interest is getting this patch in?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/?limit=25#f094" rel="alternate"/><published>2017-09-11T10:23:51.768000Z</published><updated>2017-09-11T10:23:51.768000Z</updated><author><name>Thomas Holder</name><uri>https://sourceforge.net/u/speleo3/</uri></author><id>https://sourceforge.netc9732491d7e25821a8fe22efbc30ab4b447842b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Max -&lt;/p&gt;
&lt;p&gt;Would you mind testing my modified patch (tk-aqua-v2.patch)? It reuses more existing code.&lt;/p&gt;
&lt;p&gt;Also, please add a note or comment to this issue that you put your patch in the public domain or under a BSD-like license.&lt;/p&gt;
&lt;p&gt;For the record, this works for me with:&lt;br/&gt;
- homebrew&lt;br/&gt;
- system Python&lt;br/&gt;
- anaconda&lt;/p&gt;
&lt;p&gt;It does not work with:&lt;br/&gt;
- macports (tk +quartz), threading issues&lt;br/&gt;
- GLUT framework instead of X11 freeglut&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#12 make build reproducible</title><link href="https://sourceforge.net/p/pymol/patches/12/?limit=25#8a97" rel="alternate"/><published>2017-09-11T09:32:41.570000Z</published><updated>2017-09-11T09:32:41.570000Z</updated><author><name>Thomas Holder</name><uri>https://sourceforge.net/u/speleo3/</uri></author><id>https://sourceforge.nete7d57174f4948b8f04edb94a51602c6a11bffe9d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: accepted --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/?limit=25#0b1c" rel="alternate"/><published>2017-08-21T17:55:19.547000Z</published><updated>2017-08-21T17:55:19.547000Z</updated><author><name>Thomas Holder</name><uri>https://sourceforge.net/u/speleo3/</uri></author><id>https://sourceforge.netcfd0eeb5734c6b16efb4780712178051e01856d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Thomas Holder&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#13 Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/?limit=25#eb8b" rel="alternate"/><published>2017-08-09T23:26:14.195000Z</published><updated>2017-08-09T23:26:14.195000Z</updated><author><name>Max Klein</name><uri>https://sourceforge.net/u/telamonian/</uri></author><id>https://sourceforge.net2d3f418390d2088ae9a659b523946948a44f8bd7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here's the latest verson of the patch, with a fix for a bug that showed up durring testing on Linux.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/" rel="alternate"/><published>2017-08-04T21:43:17.828000Z</published><updated>2017-08-04T21:43:17.828000Z</updated><author><name>Max Klein</name><uri>https://sourceforge.net/u/telamonian/</uri></author><id>https://sourceforge.neta4d0d5c7158a110f9a9ccf1c546d0c75826448fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Shroedinger (or possibly just Thomas Holder),&lt;/p&gt;
&lt;p&gt;Hi, I'm Max Klein. I'm a 5th year PhD student the computational biophysics department at Johns Hopkins. I've been a heavy Pymol user for about 7 years now.&lt;/p&gt;
&lt;p&gt;I first ran into issues with the Pymol external GUI on OS X 5 years ago when I started making builds of the open source Pymol. Up until now, the best fix that had been available was to build a version of tcl-tk against X11 using homebrew (which is in general pretty great), then build a version of Python using homebrew against that brewed tcl-tk, and then build Pymol itself against that brewed Python. &lt;/p&gt;
&lt;p&gt;It was a pretty involved build, but it worked fine once you got the hang of it. The problem now is that Homebrew has dropped all support for X11, including in tcl-tk. In light of that, I worked out how to get the external GUI to actually run just using the tcl-tk that's shipped with OS X, and that uses the OS X native Aqua winowing manager. You can find the complete patch code in context (built on top of a mirror of this SVN) over on GitHub at &lt;a href="https://github.com/telamonian/pymol/tree/osx_gui_fix_-_invert_threads." rel="nofollow"&gt;https://github.com/telamonian/pymol/tree/osx_gui_fix_-_invert_threads.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And it works! Pretty well actually, from my initial testing. Basically, any Aqua windows made by Python's Tkinter absolutely have to run in the main thread or else they trigger errors at both the Python level and the operating system level (via Apple's Core Services libs). In order to accomodate this, and only when Pymol is running on OS X using Aqua, I wrote a patch that tweaks Pymol's kickoff routine. What ends up happening is that the external GUI thread runs in the main thread, while the glut GUI, which normally runs on the main thread, runs instead in a child thread. &lt;/p&gt;
&lt;p&gt;This inversion of threads does not seem to have any effect on the performance or function of Pymol, so I think that this is a viable fix for a long-standing bug. Please feel free to ask me for any changes to the patch that you think are appropriate. Everything has been throroughly tested on several different version of OS X, but I assume that there will be at least a few issues of syntanx and/or semantics to iron out with respect to the rest of the Pymol project. Overall I have attempted to alter as little as possible, both in terms of program execution and the code itself.&lt;/p&gt;
&lt;p&gt;Thank you very much for your attention, and I hope that this patch will prove useful to the community of open source Pymol users. Some extra notes can be found in the header of the patchfile itself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Max Klein&lt;br/&gt;
PhD Candidate in Biophysics&lt;br/&gt;
Roberts Lab, Johns Hopkins&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)</title><link href="https://sourceforge.net/p/pymol/patches/13/" rel="alternate"/><published>2017-08-04T21:43:17.828000Z</published><updated>2017-08-04T21:43:17.828000Z</updated><author><name>Max Klein</name><uri>https://sourceforge.net/u/telamonian/</uri></author><id>https://sourceforge.netb4eddddf6ddf9de8344ee4c8820713ba8e395b53</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 13 has been modified: Patch that fixes support for the external GUI running under the OS X native windowing system (Aqua)&lt;br/&gt;
Edited By: Thomas Holder (speleo3)&lt;br/&gt;
Owner updated: None =&amp;gt; u'speleo3'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#12 make build reproducible</title><link href="https://sourceforge.net/p/pymol/patches/12/?limit=25#ba2b" rel="alternate"/><published>2017-07-03T13:14:27.948000Z</published><updated>2017-07-03T13:14:27.948000Z</updated><author><name>Thomas Holder</name><uri>https://sourceforge.net/u/speleo3/</uri></author><id>https://sourceforge.netfbaca3e930c0569200234816de18c491a0cb12dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Thomas Holder&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>make build reproducible</title><link href="https://sourceforge.net/p/pymol/patches/12/" rel="alternate"/><published>2017-06-05T14:38:58.152000Z</published><updated>2017-06-05T14:38:58.152000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net746c19e093bf1f8526fc07c4af4d158f8a792d83</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when building packages (e.g. for openSUSE Linux)&lt;br/&gt;
(random) filesystem order of input files&lt;br/&gt;
influences ordering of functions in the output,&lt;br/&gt;
thus without the patch, builds (in disposable VMs) would usually differ.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://reproducible-builds.org/" rel="nofollow"&gt;https://reproducible-builds.org/&lt;/a&gt; for why this matters. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>make build reproducible</title><link href="https://sourceforge.net/p/pymol/patches/12/" rel="alternate"/><published>2017-06-05T14:38:58.152000Z</published><updated>2017-06-05T14:38:58.152000Z</updated><author><name>Bernhard M. Wiedemann</name><uri>https://sourceforge.net/u/greenbird/</uri></author><id>https://sourceforge.net0db9da879c6b1e1f35a78c29ef73e723f1e968d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 12 has been modified: make build reproducible&lt;br/&gt;
Edited By: Thomas Holder (speleo3)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;br/&gt;
Owner updated: None =&amp;gt; u'speleo3'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>