From: Thomas Danckaert <post@thomasdanckaert.be>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Mohammed Sadiq <sadiq@sadiqpk.org>, 24445@debbugs.gnu.org
Subject: bug#24445: GNOME desktop session crash when re-arranging dock
Date: Sun, 08 Oct 2017 17:38:17 +0200 [thread overview]
Message-ID: <87infpr6om.fsf@thomasdanckaert.be> (raw)
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")
[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]
ludo@gnu.org (Ludovic Courtès) writes:
> I think that’d be OK.
>
> Though libXcursor contains a few ‘getenv’ calls, notably for
> XCURSOR_PATH, which looks like it’s what we’re looking for.
>
> 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’t 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’s complicated
> because I guess it doesn’t 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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-system-operating-system-etc-service-Set-XCURSOR_PATH.patch --]
[-- Type: text/x-patch, Size: 1094 bytes --]
From e6328f95f3c7dbec3f124f15a3cd50f95e4431d2 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <thomas.danckaert@gmail.com>
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
next prev parent reply other threads:[~2017-10-08 15:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 13:45 bug#24445: GNOME desktop session crash when re-arranging dock Ravishankar S
2017-09-27 7:48 ` Thomas Danckaert
2017-09-30 5:51 ` bug#24445: [No Subject] Mohammed Sadiq
2017-10-02 14:51 ` bug#24445: GNOME desktop session crash when re-arranging dock Ludovic Courtès
2017-10-02 18:01 ` Mohammed Sadiq
2017-10-02 18:34 ` Mark H Weaver
2017-10-08 13:50 ` Thomas Danckaert
2017-10-08 15:08 ` Ludovic Courtès
2017-10-08 15:38 ` Thomas Danckaert [this message]
2017-10-08 19:18 ` Ludovic Courtès
2017-10-09 8:58 ` Thomas Danckaert
2017-10-09 9:51 ` Ludovic Courtès
2017-10-09 10:47 ` Thomas Danckaert
2017-10-10 8:29 ` Thomas Danckaert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87infpr6om.fsf@thomasdanckaert.be \
--to=post@thomasdanckaert.be \
--cc=24445@debbugs.gnu.org \
--cc=ludo@gnu.org \
--cc=sadiq@sadiqpk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.