Cura: Adding hack for KDE

This one simply unsets and modifies some environment variables before running "cura.real".
There are many problems with QML under KDE, but these disappear when running Cura on Gnome for example.
So the problem was deskop related.

Since KDE is being started using some startup scripts which set some environment variables, I simply looked for these, which disable the middleware by KDE.
Now everything seems to work fine again!

Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> (github: thopiekar)
This commit is contained in:
Thomas Karl Pietrowski 2019-05-04 17:51:23 +02:00
parent d5a29caed1
commit a6e69e4338
2 changed files with 16 additions and 0 deletions

10
Cura/cura.envhack Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
export XDG_CONFIG_DIRS=/etc/xdg
unset XDG_SESSION_DESKTOP
unset XDG_CURRENT_DESKTOP
unset KDE_FULL_SESSION
unset KDE_SESSION_UID
unset KDE_SESSION_VERSION
cura.real "$@"

View File

@ -28,6 +28,12 @@ override_dh_auto_configure:
-DCURA_VERSION="$(DEB_PACKAGE_VERSION)-PPA" \
-DCURA_SDK_VERSION=6.0.0
override_dh_auto_install:
dh_auto_install
# Hacking Cura with some environment hacks for KDE
mv debian/tmp/usr/bin/cura debian/tmp/usr/bin/cura.real
cp -fv debian/cura.envhack debian/tmp/usr/bin/cura
override_dh_installmime:
cp -fv cura.sharedmimeinfo debian/cura.sharedmimeinfo
dh_installmime -O--buildsystem=cmake -O--parallel