all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#63558] [PATCH] gnu: Add qutebrowser/wayland.
@ 2023-05-17 20:00 Wamm K. D
  2023-09-01 14:26 ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Wamm K. D @ 2023-05-17 20:00 UTC (permalink / raw)
  To: 63558; +Cc: Wamm K. D

* gnu/packages/web-browsers.scm (qutebrowser/wayland): New variable.
---
Create a package that can be used with Wayland, like UnGoogled
Chromium and Icecat have.

 gnu/packages/web-browsers.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 33de0039838..eec818f9261 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2021 Alexander Krotov <krotov@iitp.ru>
 ;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;; Copyright © 2021 Christopher Howard <christopher@librehacker.com>
+;;; Copyright © 2023 Wamm K. D. <jaft.r@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -548,6 +549,21 @@ (define-public qutebrowser
 GUI.  It is based on PyQt5 and QtWebEngine.")
     (license license:gpl3+)))
 
+(define-public qutebrowser/wayland
+  (package/inherit qutebrowser
+    (name "qutebrowser-wayland")
+    (inputs (modify-inputs (package-inputs qutebrowser)
+              (prepend qtwayland-5)))
+    (arguments (substitute-keyword-arguments (package-arguments qutebrowser)
+                 ((#:phases phases)
+                  #~(modify-phases #$phases
+                      (add-after 'wrap-qt-process-path 'wrap-qtwebengine-path
+                        (lambda* (#:key inputs outputs #:allow-other-keys)
+                          (wrap-program (search-input-file outputs "bin/qutebrowser")
+                            `("QT_PLUGIN_PATH" =
+                              (,(string-append (assoc-ref inputs "qtwayland")
+                                               "/lib/qt5/plugins/"))))))))))))
+
 (define-public vimb
   (package
     (name "vimb")
-- 
2.40.1





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

* [bug#63558] [PATCH] gnu: Add qutebrowser/wayland.
  2023-05-17 20:00 [bug#63558] [PATCH] gnu: Add qutebrowser/wayland Wamm K. D
@ 2023-09-01 14:26 ` Maxim Cournoyer
  2023-09-02  6:04   ` Jaft
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2023-09-01 14:26 UTC (permalink / raw)
  To: Wamm K. D; +Cc: 63558

Hi,

"Wamm K. D" <jaft.r@outlook.com> writes:

> * gnu/packages/web-browsers.scm (qutebrowser/wayland): New variable.
> ---
> Create a package that can be used with Wayland, like UnGoogled
> Chromium and Icecat have.

There's a difference though; here qutebrowser uses Qt, and qtwayland
works as a plugin, so as long as it's found in your user profile it
should just work.  Is it not the case?

I'd like to avoid adding package variants if possible.

-- 
Thanks,
Maxim




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

* [bug#63558] [PATCH] gnu: Add qutebrowser/wayland.
  2023-09-01 14:26 ` Maxim Cournoyer
@ 2023-09-02  6:04   ` Jaft
  2023-09-03 14:53     ` bug#63558: " Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Jaft @ 2023-09-02  6:04 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 63558@debbugs.gnu.org

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

 I'm running XWayland and, at one point, it just stopped working (would launch in X, instead); it's been a while since I ran it (I've been running this version, instead) but I think that was why I wrote this up. Even when it was working, launching it from an X app. would cause it to run as X. I remember it being really annoying in unexpected ways and not always predictable.    On Friday, September 1, 2023 at 09:26:49 AM CDT, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:  
 
 Hi,

"Wamm K. D" <jaft.r@outlook.com> writes:

> * gnu/packages/web-browsers.scm (qutebrowser/wayland): New variable.
> ---
> Create a package that can be used with Wayland, like UnGoogled
> Chromium and Icecat have.

There's a difference though; here qutebrowser uses Qt, and qtwayland
works as a plugin, so as long as it's found in your user profile it
should just work.  Is it not the case?

I'd like to avoid adding package variants if possible.

-- 
Thanks,
Maxim
  

[-- Attachment #2: Type: text/html, Size: 2185 bytes --]

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

* bug#63558: [PATCH] gnu: Add qutebrowser/wayland.
  2023-09-02  6:04   ` Jaft
@ 2023-09-03 14:53     ` Maxim Cournoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2023-09-03 14:53 UTC (permalink / raw)
  To: Jaft; +Cc: 63558@debbugs.gnu.org

tags 63558 + notabug
quit

Hello,

Jaft <jaft.r@outlook.com> writes:

>  I'm running XWayland and, at one point, it just stopped working
> (would launch in X, instead); it's been a while since I ran it (I've
> been running this version, instead) but I think that was why I wrote
> this up. Even when it was working, launching it from an X app. would
> cause it to run as X. I remember it being really annoying in
> unexpected ways and not always predictable.  On Friday, September 1,
> 2023 at 09:26:49 AM CDT, Maxim Cournoyer <maxim.cournoyer@gmail.com>
> wrote:

OK; I'll close the issue, but if someone else encounters a problem
attempting to use qutebrowser on wayland (despite installing qtwayland
in their user profile), let's reopen and revisit it.

-- 
Thanks,
Maxim




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

end of thread, other threads:[~2023-09-03 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17 20:00 [bug#63558] [PATCH] gnu: Add qutebrowser/wayland Wamm K. D
2023-09-01 14:26 ` Maxim Cournoyer
2023-09-02  6:04   ` Jaft
2023-09-03 14:53     ` bug#63558: " Maxim Cournoyer

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.