unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
To: John Hamelink <me@johnhame.link>, 53379@debbugs.gnu.org
Cc: 48300-done@debbugs.gnu.org
Subject: bug#53379: Emacs cursor theme is not inherited from the OS when using foreign Guix
Date: Thu, 20 Jan 2022 09:18:56 +0100	[thread overview]
Message-ID: <36cc0373db290039046a8235f68e7b62f487489b.camel@ist.tugraz.at> (raw)
In-Reply-To: <87r193xnd6.fsf@johnhame.link>

Hi

Am Donnerstag, dem 20.01.2022 um 00:03 +0000 schrieb John Hamelink:
> Hi there,
> 
> I'm experiencing an issue with the emacs-next package on my Guix
> foreign setup where the cursor (*not* Emacs point) is very dark. It's
> perfectly legible against the default Emacs theme, but nonetheless it
> is not respecting the settings of the rest of my system. To make
> things worse, I'm currently using (and enjoying!) the modus-vivendi
> theme.
> 
> My host machine is running Arch GNU/Linux with a tiling window
> manager. I set my cursor style using xsetroot like so:
> 
> xsetroot -xcf /usr/share/icons/Adwaita/cursors/left_ptr 16
Corrected your xsetroot invocation there :P

> I tried installing the adwaita-icon-theme, gnome-themes-standard, and
> gnome-themes-extra packages in an attempt at installing the correct
> theme, but that didn't help.
> 
> I'm not entirely sure what the issue is, but after speaking with some
> folks at #guix, it was suggested to me that this may in fact be a
> bug. The other option discussed is that Guix needs its own cursor
> settings, but I'm too early on in my journey with Guix (maybe 2 hours
> of experience using the Guix binary) to know how set that up - if that
> is indeed the case, some pointers on what to read would be very
> warmly received!
It turns out this issue is actually related to another issue of Guix'
Emacs on foreign distros, which is it not finding timezones.  Since
I've found a permanent solution to both, I will close that bug and pat
myself on the back for doing so.

The main issue here is that foreign distros with systemd really cut
down on their use of environment variables, whereas Guix (System) makes
prominent use of them.  In the case of the other bug, TZDIR was unset,
in the case of yours it was XCURSOR_PATH.

Writing an override configuration file with the following contents

--8<---------------cut here---------------start------------->8---
# ~/.config/systemd/user/gnome-shell-x11.service.d/override.conf
[Service]
Environment=TZDIR='/usr/share/zoneinfo'
Environment=XCURSOR_PATH='/usr/share/icons'
--8<---------------cut here---------------end--------------->8---

fixed this for me, although I should specify that I previously only had
TZDIR set and bound XCURSOR_PATH interactively in the shell (I am
typing this just as I found the fix and haven't yet had the opportunity
to restart my X session).

Now one thing I don't quite get is the interaction with GNOME Shell. 
With my current setup as detailed above, Emacs inherits whichever
cursor was set in GNOME at the time of launch for the entire process
duration -- i.e. even if the corresponding GNOME setting changes.  
I'm pretty sure in your setup with xsetroot there's nothing else
setting the cursor, so it ought to be displayed correctly after that. 
If not, you might have to play around with cursor themes in other ways
(refer to [1]).

Cheers


[1] https://wiki.archlinux.org/title/Cursor_themes




  reply	other threads:[~2022-01-20  8:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20  0:03 bug#53379: Emacs cursor theme is not inherited from the OS when using foreign Guix John Hamelink
2022-01-20  8:18 ` Liliana Marie Prikler [this message]
2021-05-08 21:19   ` bug#48300: Guix Emacs does not get "America/Sao_Paulo" timezone by name Jorge P. de Morais Neto via Bug reports for GNU Guix
2021-05-08 23:56     ` Leo Prikler
2021-05-09 15:38       ` Jorge P. de Morais Neto via Bug reports for GNU Guix
2021-05-09 15:57         ` Leo Prikler
2021-05-09 19:41           ` Jorge P. de Morais Neto via Bug reports for GNU Guix
2021-05-09 20:08             ` Leo Prikler
2021-05-09 22:23               ` Jorge P. de Morais Neto via Bug reports for GNU Guix
     [not found]     ` <handler.48300.D48300.164266674622788.notifdone@debbugs.gnu.org>
2022-01-20 11:27       ` bug#48300: closed (Re: Emacs cursor theme is not inherited from the OS when using foreign Guix) Jorge P. de Morais Neto via Bug reports for GNU Guix
2022-01-20 11:45         ` Liliana Marie Prikler
2022-01-20 12:29           ` Jorge P. de Morais Neto via Bug reports for GNU Guix
2022-01-20 12:59             ` Liliana Marie Prikler
2022-01-20 14:12               ` Jorge P. de Morais Neto via Bug reports for GNU Guix
2022-01-20 20:26         ` Thiago Jung Bauermann via Bug reports for GNU Guix
2022-01-21 13:11           ` Jorge P. de Morais Neto via Bug reports for GNU Guix
2022-01-20  9:03   ` bug#48300: Emacs cursor theme is not inherited from the OS when using foreign Guix John Hamelink
2022-01-20  9:16     ` bug#53379: " Liliana Marie Prikler

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36cc0373db290039046a8235f68e7b62f487489b.camel@ist.tugraz.at \
    --to=liliana.prikler@ist.tugraz.at \
    --cc=48300-done@debbugs.gnu.org \
    --cc=53379@debbugs.gnu.org \
    --cc=me@johnhame.link \
    /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 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).