summaryrefslogtreecommitdiff
path: root/media-gfx/printrun/files/printrun-x11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/printrun/files/printrun-x11.patch')
-rw-r--r--media-gfx/printrun/files/printrun-x11.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/media-gfx/printrun/files/printrun-x11.patch b/media-gfx/printrun/files/printrun-x11.patch
new file mode 100644
index 000000000000..dd9597a126e1
--- /dev/null
+++ b/media-gfx/printrun/files/printrun-x11.patch
@@ -0,0 +1,39 @@
+diff --git a/plater.py b/plater.py
+index 469eeb2..bfcc975 100755
+--- a/plater.py
++++ b/plater.py
+@@ -15,12 +15,14 @@
+ # You should have received a copy of the GNU General Public License
+ # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+
++import os
+ import sys
+ import wx
+
+ from printrun.stlplater import StlPlater
+
+ if __name__ == '__main__':
++ os.environ['GDK_BACKEND'] = 'x11'
+ app = wx.App(False)
+ main = StlPlater(filenames = sys.argv[1:])
+ main.Show()
+diff --git a/pronterface.py b/pronterface.py
+index dbe295a..4152288 100755
+--- a/pronterface.py
++++ b/pronterface.py
+@@ -15,6 +15,7 @@
+ # You should have received a copy of the GNU General Public License
+ # along with Printrun. If not, see <http://www.gnu.org/licenses/>.
+
++import os
+ import sys
+
+ try:
+@@ -32,6 +33,7 @@ not yet available for python3. You should try running with python2 instead.""")
+ from printrun.pronterface import PronterApp
+
+ if __name__ == '__main__':
++ os.environ['GDK_BACKEND'] = 'x11'
+ app = PronterApp(False)
+ try:
+ app.MainLoop()