From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 03:19:06 2022 Received: (at 48300-done) by debbugs.gnu.org; 20 Jan 2022 08:19:06 +0000 Received: from localhost ([127.0.0.1]:56191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nASev-0005vT-LM for submit@debbugs.gnu.org; Thu, 20 Jan 2022 03:19:05 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:11663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nASet-0005vG-AD; Thu, 20 Jan 2022 03:19:04 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Jfb4w2JD0z3wD1; Thu, 20 Jan 2022 09:18:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1642666736; bh=vWxdYEEtyEFdZ+iuoposxLO7rY/120V9GVhha/yio0s=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=lyj1U6v5jI18Ks22iYbYWfqnChhykBvaJtvOU3EQ8wX2kcVjRSjk1gr+OI/ZfaMcq VRwI5mfKkbTTU4ZKJDy1yDvezWHk+hoJuhBmYRbKEZSYLFrbn66znfTuBkFgTBuLeh CeaDSW3rv4iz7q96+aA0anxVIM//t/IbXckt/mrc= Message-ID: <36cc0373db290039046a8235f68e7b62f487489b.camel@ist.tugraz.at> Subject: Re: Emacs cursor theme is not inherited from the OS when using foreign Guix From: Liliana Marie Prikler To: John Hamelink , 53379@debbugs.gnu.org Date: Thu, 20 Jan 2022 09:18:56 +0100 In-Reply-To: <87r193xnd6.fsf@johnhame.link> References: <87r193xnd6.fsf@johnhame.link> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48300-done Cc: 48300-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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