Message ID | 20221121171403.30222-1-db@minikn.xyz |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A9B4D27BBED; Mon, 21 Nov 2022 17:15:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 352C727BBE9 for <patchwork@mira.cbaines.net>; Mon, 21 Nov 2022 17:15:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1oxAOE-0004uz-PC; Mon, 21 Nov 2022 12:15:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oxANq-0004rs-Ud for guix-patches@gnu.org; Mon, 21 Nov 2022 12:15:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oxANq-0001fH-KJ for guix-patches@gnu.org; Mon, 21 Nov 2022 12:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oxANq-00061Y-EH for guix-patches@gnu.org; Mon, 21 Nov 2022 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59451] [PATCH] gnu: cura: Make it work on wayland. Resent-From: Demis Balbach <db@minikn.xyz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Nov 2022 17:15:02 +0000 Resent-Message-ID: <handler.59451.B.166905086823086@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59451@debbugs.gnu.org Cc: Demis Balbach <db@minikn.xyz> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166905086823086 (code B ref -1); Mon, 21 Nov 2022 17:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Nov 2022 17:14:28 +0000 Received: from localhost ([127.0.0.1]:48675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oxANI-00060H-1j for submit@debbugs.gnu.org; Mon, 21 Nov 2022 12:14:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:33440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <db@minikn.xyz>) id 1oxANF-000609-E8 for submit@debbugs.gnu.org; Mon, 21 Nov 2022 12:14:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <db@minikn.xyz>) id 1oxANF-0004in-9M for guix-patches@gnu.org; Mon, 21 Nov 2022 12:14:25 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <db@minikn.xyz>) id 1oxAND-0001V1-DW for guix-patches@gnu.org; Mon, 21 Nov 2022 12:14:25 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4NGDWk4NJmz9sW1; Mon, 21 Nov 2022 18:14:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=minikn.xyz; s=MBO0001; t=1669050850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Z5BvDYNVLW5mLuUolQgWBqvFCOB8HsdG7MqQY0GX6qc=; b=k5ciBBpS+0qE9mjamiSylBMiekqdQfBx82xFiKjRNZ6TzOospggwBD/OQrEzkdqQ2Mv7gQ RasnAF4Zono8MWSRWPnNVc4YF312kZzjxC1TiNe2Mzn/hWh+CPAtvw4fErIgRK/r7YaWiB prQA+lOUiLBV0GRD9xK655pAp2yxrwrtSy/z5wQE4OQ2pDPPGp7B/nQglxAqoDXmqul6u1 JCo4EOiAMM1dEFIG8xty4jeuMATIIfUPBf6WrrhVqfFqgUvnQkBy+YxNf2cbraf16FX0Ci W/0ZckUzacrVP3dnESqtMsBGbrUnm1IAxP9NCgp33AxOne0a+/w3+eeaJYM0xw== From: Demis Balbach <db@minikn.xyz> Date: Mon, 21 Nov 2022 18:14:03 +0100 Message-Id: <20221121171403.30222-1-db@minikn.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NGDWk4NJmz9sW1 Received-SPF: none client-ip=80.241.56.161; envelope-from=db@minikn.xyz; helo=mout-p-103.mailbox.org X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=1.138, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#59451] gnu: cura: Make it work on wayland.
|
|
Commit Message
Demis Balbach
Nov. 21, 2022, 5:14 p.m. UTC
* gnu/packages/engineering.scm (cura): Make it work on wayland. --- gnu/packages/engineering.scm | 1 + 1 file changed, 1 insertion(+)
Comments
Demis Balbach <db@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
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?
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
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"