unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23200: XFCE: selecting a style has no effect
@ 2016-04-02 21:46 Chris Marusich
  2016-04-03  2:10 ` Jookia
  2016-04-03  6:51 ` Ricardo Wurmus
  0 siblings, 2 replies; 11+ messages in thread
From: Chris Marusich @ 2016-04-02 21:46 UTC (permalink / raw)
  To: 23200

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

Hi,

I've noticed surprising behavior on a fresh install of GuixSD v0.10.0
when using XFCE.  In XFCE, in the "Appearance" section of the settings,
under the "Style" tab, if you select an alternate style (e.g.,
"Xfce-kolors"), the color scheme does not actually get updated.  I
expected the colors of the windows to change, but they did not.

Is this expected?  Perhaps I'm missing something that needs to be done
to apply the change, but it seems like it just isn't working.

-- 
Chris

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

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-02 21:46 bug#23200: XFCE: selecting a style has no effect Chris Marusich
@ 2016-04-03  2:10 ` Jookia
  2016-04-03  6:51 ` Ricardo Wurmus
  1 sibling, 0 replies; 11+ messages in thread
From: Jookia @ 2016-04-03  2:10 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 23200

On Sat, Apr 02, 2016 at 02:46:17PM -0700, Chris Marusich wrote:
> Hi,
> 
> I've noticed surprising behavior on a fresh install of GuixSD v0.10.0
> when using XFCE.  In XFCE, in the "Appearance" section of the settings,
> under the "Style" tab, if you select an alternate style (e.g.,
> "Xfce-kolors"), the color scheme does not actually get updated.  I
> expected the colors of the windows to change, but they did not.
> 
> Is this expected?  Perhaps I'm missing something that needs to be done
> to apply the change, but it seems like it just isn't working.

Currently GTK themes installed outside ~/.themes aren't found. There's a few
patches on the mailing list waiting review from a month or so ago.

> -- 
> Chris

Jookia.

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-02 21:46 bug#23200: XFCE: selecting a style has no effect Chris Marusich
  2016-04-03  2:10 ` Jookia
@ 2016-04-03  6:51 ` Ricardo Wurmus
  2016-04-03 23:55   ` Chris Marusich
  1 sibling, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2016-04-03  6:51 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 23200


Chris Marusich <cmmarusich@gmail.com> writes:

> I've noticed surprising behavior on a fresh install of GuixSD v0.10.0
> when using XFCE.  In XFCE, in the "Appearance" section of the settings,
> under the "Style" tab, if you select an alternate style (e.g.,
> "Xfce-kolors"), the color scheme does not actually get updated.  I
> expected the colors of the windows to change, but they did not.
>
> Is this expected?  Perhaps I'm missing something that needs to be done
> to apply the change, but it seems like it just isn't working.

Here’s what worked for me:

* install gnome-themes-standard into the system profile
* set GTK_DATA_PREFIX to “/run/current-system/profile”

The problem here is that GTK_DATA_PREFIX is not a list of directories in
which GTK+ should look for themes; it is just a single directory.  We
need to patch GTK+ to search through a list of directories instead.

~~ Ricardo

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-03  6:51 ` Ricardo Wurmus
@ 2016-04-03 23:55   ` Chris Marusich
  2016-04-04 20:26     ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Marusich @ 2016-04-03 23:55 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 23200

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

Ricardo Wurmus <rekado@elephly.net> writes:

> Here’s what worked for me:
>
> * install gnome-themes-standard into the system profile
> * set GTK_DATA_PREFIX to “/run/current-system/profile”

Can it be arranged for these two things to be done automatically in the
installation image?  I think it would be simple to add
"gnome-themes-standard" to the sample desktop.scm file we provide, but
I'm not sure how we would ensure that GTK_DATA_PREFIX gets set up
correctly.  Is there a mechanism in GuixSD for adding such environment
variables to /etc/profile, for example?

-- 
Chris

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

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-03 23:55   ` Chris Marusich
@ 2016-04-04 20:26     ` Ludovic Courtès
  2016-04-04 21:48       ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2016-04-04 20:26 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 23200

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

Chris Marusich <cmmarusich@gmail.com> skribis:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Here’s what worked for me:
>>
>> * install gnome-themes-standard into the system profile
>> * set GTK_DATA_PREFIX to “/run/current-system/profile”
>
> Can it be arranged for these two things to be done automatically in the
> installation image?  I think it would be simple to add
> "gnome-themes-standard" to the sample desktop.scm file we provide, but
> I'm not sure how we would ensure that GTK_DATA_PREFIX gets set up
> correctly.  Is there a mechanism in GuixSD for adding such environment
> variables to /etc/profile, for example?

Definitely.

I’ve tested that with this patch changing colors under the “Style” tab
in Xfce does have an effect.

I’ll commit it shortly if there are no objections.

Thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 573 bytes --]

diff --git a/gnu/system.scm b/gnu/system.scm
index 8e05254..a8744ea 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -421,6 +421,9 @@ export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share
 export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
 export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
 
+# 'GTK_DATA_PREFIX' must name one directory where themes are searched for.
+export GTK_DATA_PREFIX=/run/current-system/profile
+
 # Ignore the default value of 'PATH'.
 unset PATH
 

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-04 20:26     ` Ludovic Courtès
@ 2016-04-04 21:48       ` Ludovic Courtès
  2016-04-05  4:19         ` Chris Marusich
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2016-04-04 21:48 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 23200-done

ludo@gnu.org (Ludovic Courtès) skribis:

> I’ve tested that with this patch changing colors under the “Style” tab
> in Xfce does have an effect.
>
> I’ll commit it shortly if there are no objections.

Pushed a slightly different version as
ae05e366bea4517f1e428799f00f11997ccef661.

Thanks!

Ludo’.

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-04 21:48       ` Ludovic Courtès
@ 2016-04-05  4:19         ` Chris Marusich
  2016-04-05  6:54           ` Jookia
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Marusich @ 2016-04-05  4:19 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23200-done

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

ludo@gnu.org (Ludovic Courtès) writes:

> ludo@gnu.org (Ludovic Courtès) skribis:
>
>> I’ve tested that with this patch changing colors under the “Style” tab
>> in Xfce does have an effect.
>>
>> I’ll commit it shortly if there are no objections.
>
> Pushed a slightly different version as
> ae05e366bea4517f1e428799f00f11997ccef661.

This fixed the issue for me.  Thanks!

-- 
Chris

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

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-05  4:19         ` Chris Marusich
@ 2016-04-05  6:54           ` Jookia
  2016-04-05  7:04             ` Chris Marusich
  2016-04-05  8:11             ` Ludovic Courtès
  0 siblings, 2 replies; 11+ messages in thread
From: Jookia @ 2016-04-05  6:54 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 23200-done

On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
> ludo@gnu.org (Ludovic Courtès) writes:
> 
> > ludo@gnu.org (Ludovic Courtès) skribis:
> >
> >> I’ve tested that with this patch changing colors under the “Style” tab
> >> in Xfce does have an effect.
> >>
> >> I’ll commit it shortly if there are no objections.
> >
> > Pushed a slightly different version as
> > ae05e366bea4517f1e428799f00f11997ccef661.
> 
> This fixed the issue for me.  Thanks!
> 
> -- 
> Chris

I heavily disagree with this approach for two reasons:

1) It doesn't work with user theme installs.
2) I have a patch that fixes this problem completely.
3) The fix I provided has been duplicated upstream in GTK+.

I suggest reverting this and applying my patch and read the full breakdown of
the issue and solution here:

https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00492.html

This was the patch I suggested earlier but seem to be ignored or missed.

Jookia.

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-05  6:54           ` Jookia
@ 2016-04-05  7:04             ` Chris Marusich
  2016-04-05  8:11             ` Ludovic Courtès
  1 sibling, 0 replies; 11+ messages in thread
From: Chris Marusich @ 2016-04-05  7:04 UTC (permalink / raw)
  To: Jookia; +Cc: 23200-done

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

Jookia <166291@gmail.com> writes:

> On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
>> ludo@gnu.org (Ludovic Courtès) writes:
>> 
>> > ludo@gnu.org (Ludovic Courtès) skribis:
>> >
>> >> I’ve tested that with this patch changing colors under the “Style” tab
>> >> in Xfce does have an effect.
>> >>
>> >> I’ll commit it shortly if there are no objections.
>> >
>> > Pushed a slightly different version as
>> > ae05e366bea4517f1e428799f00f11997ccef661.
>> 
>> This fixed the issue for me.  Thanks!
>> 
>> -- 
>> Chris
>
> I heavily disagree with this approach for two reasons:
>
> 1) It doesn't work with user theme installs.
> 2) I have a patch that fixes this problem completely.
> 3) The fix I provided has been duplicated upstream in GTK+.
>
> I suggest reverting this and applying my patch and read the full breakdown of
> the issue and solution here:
>
> https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00492.html
>
> This was the patch I suggested earlier but seem to be ignored or missed.

Oh!  Thank you for the link.  Ludo, what do you think about Jookia's
comments?

-- 
Chris

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

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-05  6:54           ` Jookia
  2016-04-05  7:04             ` Chris Marusich
@ 2016-04-05  8:11             ` Ludovic Courtès
  2016-04-05  8:31               ` Jookia
  1 sibling, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2016-04-05  8:11 UTC (permalink / raw)
  To: Jookia; +Cc: 23200-done

Jookia <166291@gmail.com> skribis:

> On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
>> ludo@gnu.org (Ludovic Courtès) writes:
>> 
>> > ludo@gnu.org (Ludovic Courtès) skribis:
>> >
>> >> I’ve tested that with this patch changing colors under the “Style” tab
>> >> in Xfce does have an effect.
>> >>
>> >> I’ll commit it shortly if there are no objections.
>> >
>> > Pushed a slightly different version as
>> > ae05e366bea4517f1e428799f00f11997ccef661.
>> 
>> This fixed the issue for me.  Thanks!
>> 
>> -- 
>> Chris
>
> I heavily disagree with this approach for two reasons:
>
> 1) It doesn't work with user theme installs.

Right, it’s mostly a hack to fix the immediate issue, which probably
covers many use cases since ‘xfce-desktop-service’ and
‘gnome-desktop-service’ install things globally.

> 2) I have a patch that fixes this problem completely.
> 3) The fix I provided has been duplicated upstream in GTK+.
>
> I suggest reverting this and applying my patch and read the full breakdown of
> the issue and solution here:
>
> https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00492.html

Oh, I had overlooked this one, sorry about that!

Ricardo raised some concerns in that thread, namely that the patch
hard-codes a specific profile name as well.  Did you have a chance to
look into it?

Thanks for the heads-up, and my apologies for overlooking it!

Ludo’.

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

* bug#23200: XFCE: selecting a style has no effect
  2016-04-05  8:11             ` Ludovic Courtès
@ 2016-04-05  8:31               ` Jookia
  0 siblings, 0 replies; 11+ messages in thread
From: Jookia @ 2016-04-05  8:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 23200-done

On Tue, Apr 05, 2016 at 10:11:01AM +0200, Ludovic Courtès wrote:
> Ricardo raised some concerns in that thread, namely that the patch
> hard-codes a specific profile name as well.  Did you have a chance to
> look into it?

The patch I linked has no hardcoding (it's PATCHv2), it uses XDG_DATA_DIRS.

> Thanks for the heads-up, and my apologies for overlooking it!

No problem.

> Ludo’.

Jookia.

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

end of thread, other threads:[~2016-04-05  8:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-02 21:46 bug#23200: XFCE: selecting a style has no effect Chris Marusich
2016-04-03  2:10 ` Jookia
2016-04-03  6:51 ` Ricardo Wurmus
2016-04-03 23:55   ` Chris Marusich
2016-04-04 20:26     ` Ludovic Courtès
2016-04-04 21:48       ` Ludovic Courtès
2016-04-05  4:19         ` Chris Marusich
2016-04-05  6:54           ` Jookia
2016-04-05  7:04             ` Chris Marusich
2016-04-05  8:11             ` Ludovic Courtès
2016-04-05  8:31               ` Jookia

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