From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Danckaert Subject: bug#24445: GNOME desktop session crash when re-arranging dock Date: Sun, 08 Oct 2017 17:38:17 +0200 Message-ID: <87infpr6om.fsf@thomasdanckaert.be> References: <1140473326.10127.1506750718340@webmail.mailhostbox.com> <8760bxppr7.fsf_-_@gnu.org> <87efql9z5l.fsf@netris.org> <87a811n3yc.fsf@thomasdanckaert.be> <871smdfzhx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1DfT-000138-TF for bug-guix@gnu.org; Sun, 08 Oct 2017 11:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1DfS-0000vK-VO for bug-guix@gnu.org; Sun, 08 Oct 2017 11:39:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1DfS-0000vB-Rt for bug-guix@gnu.org; Sun, 08 Oct 2017 11:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1DfS-000583-Hk for bug-guix@gnu.org; Sun, 08 Oct 2017 11:39:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871smdfzhx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 08 Oct 2017 17:08:58 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Mohammed Sadiq , 24445@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > I think that=E2=80=99d be OK. > > Though libXcursor contains a few =E2=80=98getenv=E2=80=99 calls, notably = for > XCURSOR_PATH, which looks like it=E2=80=99s what we=E2=80=99re looking fo= r. > > I tested the attached path in a VM and it seems to fix the bug: I can > drag a window in the overview area on the right and it no longer crashes > (*and* I get a hand-shaped cursor when hovering that area :-)). And we > don=E2=80=99t need to modify libXcursor. > > (We could do slightly better by using the absolute file name of the > actual icon theme instead of /run/current-system, but it=E2=80=99s compli= cated > because I guess it doesn=E2=80=99t have to be Adwaita.) > > Thoughts? Ha, I was just going to reply the same (see attached patch). I've tested it on my system as well, and it works. Indeed encoding the absolute file name of the icon theme seems hard, unless we set the icon theme inside the system configuration? Not sure how we want to handle icon themes installed in user profiles. In my patch, I included both system and user profile, in case users want to install icon themes in their profile, as well as the default ~/.icons (which seems to be a kind of standard as well, so thought we could keep it by default). Also, I'm not sure if we need to set both paths in /etc/profile, or if we can just have icon theme packages prepend to the current XCURSOR_PATH when installed into a user profile (I'm not familiar with the details of http://bugs.gnu.org/20255)? cheers! Thomas --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-system-operating-system-etc-service-Set-XCURSOR_PATH.patch >From e6328f95f3c7dbec3f124f15a3cd50f95e4431d2 Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Sun, 8 Oct 2017 17:21:09 +0200 Subject: [PATCH] system: operating-system-etc-service: Set XCURSOR_PATH. * gnu/system.scm (operating-system-etc-service): Set XCURSOR_PATH environment variable so that libxcursor finds cursors in user and system profiles. --- gnu/system.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/system.scm b/gnu/system.scm index 8ab4801b7..6e9aa0635 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -579,6 +579,7 @@ export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/m export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info 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 +export XCURSOR_PATH=$HOME/.icons:$HOME/.guix-profile/share/icons:/run/current-system/profile/share/icons # Ignore the default value of 'PATH'. unset PATH -- 2.14.2 --=-=-=--