GNU bug report logs - #23200
XFCE: selecting a style has no effect

Previous Next

Package: guix;

Reported by: Chris Marusich <cmmarusich <at> gmail.com>

Date: Sat, 2 Apr 2016 21:47:02 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23200 in the body.
You can then email your comments to 23200 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Sat, 02 Apr 2016 21:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Marusich <cmmarusich <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 02 Apr 2016 21:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: XFCE: selecting a style has no effect
Date: Sat, 02 Apr 2016 14:46:17 -0700
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Sun, 03 Apr 2016 02:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 23200 <at> debbugs.gnu.org (full text, mbox):

From: Jookia <166291 <at> gmail.com>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 23200 <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Sun, 3 Apr 2016 12:10:57 +1000
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.




Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Sun, 03 Apr 2016 06:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 23200 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 23200 <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Sun, 03 Apr 2016 08:51:34 +0200
Chris Marusich <cmmarusich <at> 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





Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Sun, 03 Apr 2016 23:56:01 GMT) Full text and rfc822 format available.

Message #14 received at 23200 <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 23200 <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Sun, 03 Apr 2016 16:55:16 -0700
[Message part 1 (text/plain, inline)]
Ricardo Wurmus <rekado <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Mon, 04 Apr 2016 20:28:02 GMT) Full text and rfc822 format available.

Message #17 received at 23200 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 23200 <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Mon, 04 Apr 2016 22:26:55 +0200
[Message part 1 (text/plain, inline)]
Chris Marusich <cmmarusich <at> gmail.com> skribis:

> Ricardo Wurmus <rekado <at> 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’.

[Message part 2 (text/x-patch, inline)]
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
 

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Mon, 04 Apr 2016 21:49:01 GMT) Full text and rfc822 format available.

Notification sent to Chris Marusich <cmmarusich <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 Apr 2016 21:49:01 GMT) Full text and rfc822 format available.

Message #22 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 23200-done <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Mon, 04 Apr 2016 23:48:43 +0200
ludo <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Tue, 05 Apr 2016 04:20:01 GMT) Full text and rfc822 format available.

Message #25 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 23200-done <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Mon, 04 Apr 2016 21:19:47 -0700
[Message part 1 (text/plain, inline)]
ludo <at> gnu.org (Ludovic Courtès) writes:

> ludo <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Tue, 05 Apr 2016 06:58:01 GMT) Full text and rfc822 format available.

Message #28 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: Jookia <166291 <at> gmail.com>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 23200-done <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Tue, 5 Apr 2016 16:54:24 +1000
On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
> ludo <at> gnu.org (Ludovic Courtès) writes:
> 
> > ludo <at> 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.




Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Tue, 05 Apr 2016 07:05:02 GMT) Full text and rfc822 format available.

Message #31 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: Jookia <166291 <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23200-done <at> debbugs.gnu.org
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Tue, 05 Apr 2016 00:04:10 -0700
[Message part 1 (text/plain, inline)]
Jookia <166291 <at> gmail.com> writes:

> On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
>> ludo <at> gnu.org (Ludovic Courtès) writes:
>> 
>> > ludo <at> 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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Tue, 05 Apr 2016 08:12:01 GMT) Full text and rfc822 format available.

Message #34 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Jookia <166291 <at> gmail.com>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 23200-done <at> debbugs.gnu.org,
 Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Tue, 05 Apr 2016 10:11:01 +0200
Jookia <166291 <at> gmail.com> skribis:

> On Mon, Apr 04, 2016 at 09:19:47PM -0700, Chris Marusich wrote:
>> ludo <at> gnu.org (Ludovic Courtès) writes:
>> 
>> > ludo <at> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#23200; Package guix. (Tue, 05 Apr 2016 08:36:01 GMT) Full text and rfc822 format available.

Message #37 received at 23200-done <at> debbugs.gnu.org (full text, mbox):

From: Jookia <166291 <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 23200-done <at> debbugs.gnu.org,
 Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: bug#23200: XFCE: selecting a style has no effect
Date: Tue, 5 Apr 2016 18:31:52 +1000
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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 May 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.