unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
@ 2022-11-21 17:14 Demis Balbach
  2022-11-23  9:20 ` Christopher Baines
  0 siblings, 1 reply; 4+ messages in thread
From: Demis Balbach @ 2022-11-21 17:14 UTC (permalink / raw)
  To: 59451; +Cc: Demis Balbach

* 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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
  2022-11-21 17:14 [bug#59451] [PATCH] gnu: cura: Make it work on wayland Demis Balbach
@ 2022-11-23  9:20 ` Christopher Baines
  2022-11-28 22:34   ` Demis Balbach
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Baines @ 2022-11-23  9:20 UTC (permalink / raw)
  To: Demis Balbach; +Cc: 59451

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
  2022-11-23  9:20 ` Christopher Baines
@ 2022-11-28 22:34   ` Demis Balbach
  2022-12-04 17:56     ` Morgan Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Demis Balbach @ 2022-11-28 22:34 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 59451

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#59451] [PATCH] gnu: cura: Make it work on wayland.
  2022-11-28 22:34   ` Demis Balbach
@ 2022-12-04 17:56     ` Morgan Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Morgan Smith @ 2022-12-04 17:56 UTC (permalink / raw)
  To: Demis Balbach; +Cc: Christopher Baines, 59451


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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-04 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21 17:14 [bug#59451] [PATCH] gnu: cura: Make it work on wayland Demis Balbach
2022-11-23  9:20 ` Christopher Baines
2022-11-28 22:34   ` Demis Balbach
2022-12-04 17:56     ` Morgan Smith

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).