GNU bug report logs - #59451
[PATCH] gnu: cura: Make it work on wayland.

Previous Next

Package: guix-patches;

Reported by: Demis Balbach <db <at> minikn.xyz>

Date: Mon, 21 Nov 2022 17:15:02 UTC

Severity: normal

Tags: moreinfo, patch

To reply to this bug, email your comments to 59451 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Mon, 21 Nov 2022 17:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Demis Balbach <db <at> minikn.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 21 Nov 2022 17:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Demis Balbach <db <at> minikn.xyz>
To: guix-patches <at> gnu.org
Cc: Demis Balbach <db <at> minikn.xyz>
Subject: [PATCH] gnu: cura: Make it work on wayland.
Date: Mon, 21 Nov 2022 18:14:03 +0100
* gnu/packages/engineering.scm (cura): Make it work on wayland.
---
 gnu/packages/engineering.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 43e23e30a8..42537364e6 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3780,6 +3780,7 @@ (define-public cura
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
                (wrap-program (string-append out "/bin/cura")
+                 '("QT_QPA_PLATFORM" = ("xcb"))
                  (list "GUIX_PYTHONPATH"
                        'prefix (list (string-append out
                                                     "/lib/python"
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Wed, 23 Nov 2022 09:23:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Demis Balbach <db <at> minikn.xyz>
Cc: 59451 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
Date: Wed, 23 Nov 2022 09:20:10 +0000
[Message part 1 (text/plain, inline)]
Demis Balbach <db <at> minikn.xyz> writes:

> * gnu/packages/engineering.scm (cura): Make it work on wayland.
> ---
>  gnu/packages/engineering.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
> index 43e23e30a8..42537364e6 100644
> --- a/gnu/packages/engineering.scm
> +++ b/gnu/packages/engineering.scm
> @@ -3780,6 +3780,7 @@ (define-public cura
>             (lambda* (#:key outputs #:allow-other-keys)
>               (let ((out (assoc-ref outputs "out")))
>                 (wrap-program (string-append out "/bin/cura")
> +                 '("QT_QPA_PLATFORM" = ("xcb"))
>                   (list "GUIX_PYTHONPATH"
>                         'prefix (list (string-append out
>                                                      "/lib/python"

Setting this environment variable here seems quite unusual. What's it
doing, and would anyone want to set a different value?

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Wed, 23 Nov 2022 09:23:02 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Christopher Baines <mail <at> cbaines.net> to control <at> debbugs.gnu.org. (Wed, 23 Nov 2022 09:23:03 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Mon, 28 Nov 2022 22:36:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Demis Balbach <db <at> minikn.xyz>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 59451 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
Date: Mon, 28 Nov 2022 23:34:56 +0100
[Message part 1 (text/plain, inline)]
On 2022-11-23 09:20, Christopher Baines wrote:

> Setting this environment variable here seems quite unusual. What's it
> doing, and would anyone want to set a different value?
>
> Thanks,
>
> Chris

Hello Chris,

unfortunately I can't help much with this. Cura is currently not running
under Wayland (XWayland). After doing a bit of research, I found
https://github.com/Ultimaker/Cura/issues/10815, and setting
`QT_QPA_PLATFORM` to `xcb` was the suggested workaround until wayland is
officially supported.

My QT knowledge is very limited, but the QT_QPA_PLATFORM env var seems
to allow for defining platform-specific features for the application
(https://doc.qt.io/qt-6/embedded-linux.html#specifying-additional-settings).

Setting it to `xcb` enables the XCB plugin
(https://doc.qt.io/qt-6/embedded-linux.html#xcb), which seems to be the
default X11 plugin.

Setting the env var to `wayland` doesn't work unfortunately. As an
alternative, I could create a package derivation `cura-wayland` and only
apply the patch there? Would that be more suitable?

-- 
Best regards / Mit freundlichen Grüßen,
Demis Balbach
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Mon, 28 Nov 2022 22:36:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59451; Package guix-patches. (Sun, 04 Dec 2022 17:57:02 GMT) Full text and rfc822 format available.

Message #22 received at 59451 <at> debbugs.gnu.org (full text, mbox):

From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
To: Demis Balbach <db <at> minikn.xyz>
Cc: Christopher Baines <mail <at> cbaines.net>, 59451 <at> debbugs.gnu.org
Subject: Re: bug#59451: [PATCH] gnu: cura: Make it work on wayland.
Date: Sun, 04 Dec 2022 12:56:25 -0500
I'm not certain but this might be related to bug 57742.  Basically cura
is a QT application that cannot access the qtwayland plugin.  We could
add this plugin to the inputs or we could fix bug 57742 and have users
install it themselves.  If I'm correct that is.  I haven't tested this
theory





This bug report was last modified 2 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.