You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/printrun/files/printrun-x11.patch

40 lines
1.0 KiB

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()