unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40659] gnu: transmission: Fix icons for GUI.
@ 2020-04-16 13:00 Raghav Gururajan
  2020-04-16 16:21 ` Leo Famulari
  2020-04-24 21:08 ` [bug#40659] gnu: transmission: Fix icons for GUI. (v3) Raghav Gururajan
  0 siblings, 2 replies; 8+ messages in thread
From: Raghav Gururajan @ 2020-04-16 13:00 UTC (permalink / raw)
  To: 40659

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

Hello Guix!

Please find the attached patch to fix icons for transmission's graphical user
interface.

Regards,
RG.

[-- Attachment #2: 0001-gnu-transmission-Fix-icons-for-GUI.patch --]
[-- Type: text/x-patch, Size: 864 bytes --]

From 9ab623acb7f70a49f965202c475e18d70e9f8933 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Thu, 16 Apr 2020 08:57:46 -0400
Subject: [PATCH] gnu: transmission: Fix icons for GUI.

* gnu/packages/bittorrent.scm (transmission): Fix icons for GUI.
---
 gnu/packages/bittorrent.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index 03c7fe4515..f71e3be383 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -114,6 +114,8 @@
     (native-inputs
      `(("intltool" ,intltool)
        ("pkg-config" ,pkg-config)))
+    (propagated-inputs
+     `(("adwaita-icon-theme" ,adwaita-icon-theme))) ; Required for GUI.
     (home-page "https://transmissionbt.com/")
     (synopsis "Fast and easy BitTorrent client")
     (description
-- 
2.26.0


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

* [bug#40659] gnu: transmission: Fix icons for GUI.
  2020-04-16 13:00 [bug#40659] gnu: transmission: Fix icons for GUI Raghav Gururajan
@ 2020-04-16 16:21 ` Leo Famulari
  2020-04-16 16:35   ` [bug#40659] gnu: transmission: Fix icons for GUI. (v2) Raghav Gururajan
  2020-04-16 16:37   ` Raghav Gururajan
  2020-04-24 21:08 ` [bug#40659] gnu: transmission: Fix icons for GUI. (v3) Raghav Gururajan
  1 sibling, 2 replies; 8+ messages in thread
From: Leo Famulari @ 2020-04-16 16:21 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40659

> From 9ab623acb7f70a49f965202c475e18d70e9f8933 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Thu, 16 Apr 2020 08:57:46 -0400
> Subject: [PATCH] gnu: transmission: Fix icons for GUI.
> 
> * gnu/packages/bittorrent.scm (transmission): Fix icons for GUI.

In general, we let users install the icons into their profiles rather
than propagating them.

Does Transmission work for you if you do that?

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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v2)
  2020-04-16 16:21 ` Leo Famulari
@ 2020-04-16 16:35   ` Raghav Gururajan
  2020-04-16 17:36     ` Leo Famulari
  2020-04-16 16:37   ` Raghav Gururajan
  1 sibling, 1 reply; 8+ messages in thread
From: Raghav Gururajan @ 2020-04-16 16:35 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 40659

Hi Leo!

> In general, we let users install the icons into their profiles rather
> than propagating them.
> 
> Does Transmission work for you if you do that?

Yes, it works.

Anyway, propagation is not reuired. Just as inputs works. Looks like missing
input. I have attached revised patch with this email.

Regards,
RG.

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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v2)
  2020-04-16 16:21 ` Leo Famulari
  2020-04-16 16:35   ` [bug#40659] gnu: transmission: Fix icons for GUI. (v2) Raghav Gururajan
@ 2020-04-16 16:37   ` Raghav Gururajan
  1 sibling, 0 replies; 8+ messages in thread
From: Raghav Gururajan @ 2020-04-16 16:37 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 40659

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

Attached file here.

[-- Attachment #2: 0001-gnu-transmission-Fix-icons-for-GUI.patch --]
[-- Type: text/x-patch, Size: 892 bytes --]

From 5c04a4ae3ae951ac643c346ab035cdde17e1eca7 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Thu, 16 Apr 2020 12:31:07 -0400
Subject: [PATCH] gnu: transmission: Fix icons for GUI.

* gnu/packages/bittorrent.scm (transmission): Fix icons for GUI.
---
 gnu/packages/bittorrent.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index 03c7fe4515..40b35b005a 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -103,7 +103,8 @@
                 '("applications" "icons" "pixmaps")))
              #t)))))
     (inputs
-     `(("inotify-tools" ,inotify-tools)
+     `(("adwaita-icon-theme" ,adwaita-icon-theme)
+       ("inotify-tools" ,inotify-tools)
        ("libevent" ,libevent)
        ("curl" ,curl)
        ("cyrus-sasl" ,cyrus-sasl)
-- 
2.26.0


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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v2)
  2020-04-16 16:35   ` [bug#40659] gnu: transmission: Fix icons for GUI. (v2) Raghav Gururajan
@ 2020-04-16 17:36     ` Leo Famulari
  2020-04-16 18:24       ` Raghav Gururajan
  0 siblings, 1 reply; 8+ messages in thread
From: Leo Famulari @ 2020-04-16 17:36 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40659

On Thu, Apr 16, 2020 at 12:35:23PM -0400, Raghav Gururajan wrote:
> Hi Leo!
> 
> > In general, we let users install the icons into their profiles rather
> > than propagating them.
> > 
> > Does Transmission work for you if you do that?
> 
> Yes, it works.

Okay, then I think we should stick with the status quo. We should only
add the icons as dependencies when necessary. Icons are something where
it's better to avoid a static binding, like the time zone database and
fonts.

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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v2)
  2020-04-16 17:36     ` Leo Famulari
@ 2020-04-16 18:24       ` Raghav Gururajan
  2020-04-27  0:32         ` Leo Famulari
  0 siblings, 1 reply; 8+ messages in thread
From: Raghav Gururajan @ 2020-04-16 18:24 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 40659

Hi Leo!

> Okay, then I think we should stick with the status quo. We should only
> add the icons as dependencies when necessary. Icons are something where
> it's better to avoid a static binding, like the time zone database and
> fonts.

I understand.  I think icons should be added as dependencies, when the program
is looking for a 'specific' icon theme. If the situation is like, the program
accepts any user-chosen/user-installed icon theme, then I think icons should
not be added as dependency. But here, transmission is hard-coded to use adwaita
icons. So it is a required dependecy and not optional dependency. :-)

Regards,
RG.

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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v3)
  2020-04-16 13:00 [bug#40659] gnu: transmission: Fix icons for GUI Raghav Gururajan
  2020-04-16 16:21 ` Leo Famulari
@ 2020-04-24 21:08 ` Raghav Gururajan
  1 sibling, 0 replies; 8+ messages in thread
From: Raghav Gururajan @ 2020-04-24 21:08 UTC (permalink / raw)
  To: 40659

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



[-- Attachment #2: 0001-gnu-transmission-Fix-icons-for-GUI.patch --]
[-- Type: text/x-patch, Size: 1067 bytes --]

From 952cb241751727246d3a09ce36f479be8db20544 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Fri, 24 Apr 2020 17:02:26 -0400
Subject: [PATCH] gnu: transmission: Fix icons for GUI.

* gnu/packages/bittorrent.scm (transmission): Fix icons for GUI.

Since the adwaita icon theme is hard-coded in the application, there is
no choice for the user anyway. So let's add adwaita-icon-theme to inputs.
---
 gnu/packages/bittorrent.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index 03c7fe4515..e403b7b83b 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -103,7 +103,8 @@
                 '("applications" "icons" "pixmaps")))
              #t)))))
     (inputs
-     `(("inotify-tools" ,inotify-tools)
+     `(("adwaita-icon-theme" ,adwaita-icon-theme)          ; Hard-coded theme
+       ("inotify-tools" ,inotify-tools)
        ("libevent" ,libevent)
        ("curl" ,curl)
        ("cyrus-sasl" ,cyrus-sasl)
-- 
2.26.1


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

* [bug#40659] gnu: transmission: Fix icons for GUI. (v2)
  2020-04-16 18:24       ` Raghav Gururajan
@ 2020-04-27  0:32         ` Leo Famulari
  0 siblings, 0 replies; 8+ messages in thread
From: Leo Famulari @ 2020-04-27  0:32 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40659

On Thu, Apr 16, 2020 at 02:24:19PM -0400, Raghav Gururajan wrote:
> I understand.  I think icons should be added as dependencies, when the program
> is looking for a 'specific' icon theme. If the situation is like, the program
> accepts any user-chosen/user-installed icon theme, then I think icons should
> not be added as dependency. But here, transmission is hard-coded to use adwaita
> icons. So it is a required dependecy and not optional dependency. :-)

I don't think that non-functional data (such as icons and fonts) should
be made dependencies of other packages unless necessary. Instead, they
should be installed alongside packages by users or system-level services
as on Guix System.

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

end of thread, other threads:[~2020-04-27  0:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 13:00 [bug#40659] gnu: transmission: Fix icons for GUI Raghav Gururajan
2020-04-16 16:21 ` Leo Famulari
2020-04-16 16:35   ` [bug#40659] gnu: transmission: Fix icons for GUI. (v2) Raghav Gururajan
2020-04-16 17:36     ` Leo Famulari
2020-04-16 18:24       ` Raghav Gururajan
2020-04-27  0:32         ` Leo Famulari
2020-04-16 16:37   ` Raghav Gururajan
2020-04-24 21:08 ` [bug#40659] gnu: transmission: Fix icons for GUI. (v3) Raghav Gururajan

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).