unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70218] [PATCH 0/2] Some fixes for guix-install.sh
@ 2024-04-05 17:04 Tomas Volf
  2024-04-05 17:09 ` [bug#70218] [PATCH 1/2] guix-install.sh: Add default value for XCURSOR_PATH Tomas Volf
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tomas Volf @ 2024-04-05 17:04 UTC (permalink / raw)
  To: 70218; +Cc: Tomas Volf

This week I had to install Ubuntu 22.04 (corporate policy, do not judge me, I
needed Microsoft Intune :/ ).  I (obviously) installed GNU Guix as one of the
first things I did.  This tiny patch series is composed of fixed I had to do
to get properly working system.

Tomas Volf (2):
  guix-install.sh: Add default value for XCURSOR_PATH.
  guix-install.sh: Fix setting GUIX_LOCPATH.

 etc/guix-install.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

--
2.41.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#70218] [PATCH 1/2] guix-install.sh: Add default value for XCURSOR_PATH.
  2024-04-05 17:04 [bug#70218] [PATCH 0/2] Some fixes for guix-install.sh Tomas Volf
@ 2024-04-05 17:09 ` Tomas Volf
  2024-04-05 17:09 ` [bug#70218] [PATCH 2/2] guix-install.sh: Fix setting GUIX_LOCPATH Tomas Volf
  2024-04-29 20:57 ` bug#70218: [PATCH 0/2] Some fixes for guix-install.sh Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Tomas Volf @ 2024-04-05 17:09 UTC (permalink / raw)
  To: 70218; +Cc: Tomas Volf

This improves compatibility with (at least) Gnome based systems.  On my new
Ubuntu 22.04 install the mouse cursor was broken (after I installed Guix)
until I set this.

* etc/guix-install.sh (sys_create_init_profile): Set default value for
XCURSOR_PATH.

Change-Id: I489f0307d99e4d8d82671f291c78b90c7b6dae4a
---
 etc/guix-install.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 982fb0a266..7876afa196 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -12,6 +12,7 @@
 # Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 # Copyright © 2022 Prafulla Giri <prafulla.giri@protonmail.com>
 # Copyright © 2023 Andrew Tropin <andrew@trop.in>
+# Copyright © 2024 Tomas Volf <~@wolfsden.cz>
 #
 # This file is part of GNU Guix.
 #
@@ -527,6 +528,7 @@ sys_create_init_profile()
     cat <<"EOF" > /etc/profile.d/zzz-guix.sh
 # Explicitly initialize XDG base directory variables to ease compatibility
 # with Guix System: see <https://issues.guix.gnu.org/56050#3>.
+export XCURSOR_PATH="${XCURSOR_PATH:-/usr/local/share/icons:/usr/share/icons}"
 export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
 export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
 export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#70218] [PATCH 2/2] guix-install.sh: Fix setting GUIX_LOCPATH.
  2024-04-05 17:04 [bug#70218] [PATCH 0/2] Some fixes for guix-install.sh Tomas Volf
  2024-04-05 17:09 ` [bug#70218] [PATCH 1/2] guix-install.sh: Add default value for XCURSOR_PATH Tomas Volf
@ 2024-04-05 17:09 ` Tomas Volf
  2024-04-29 20:57 ` bug#70218: [PATCH 0/2] Some fixes for guix-install.sh Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Tomas Volf @ 2024-04-05 17:09 UTC (permalink / raw)
  To: 70218; +Cc: Tomas Volf

After installing Guix home on my new foreign system, the locale did not
work and GDM did not even let me to log in.  After some digging around using
tty3 and tty4, I realized the GUIX_LOCPATH is not being set properly.

I had nothing installed in the ~/.guix-profile (the symlink did not even
exist) and I had glibc-locales installed in ~/.guix-home, yet GUIX_LOCPATH
contained "$HOME/.guix-profile/lib/locale:".

I believe when the code was modified from the original "home or profile" to
the current "home and profile" the || was used by accident instead of &&.

I also remove the trailing :, since it is taken care of by the ${...:+:}.

* etc/guix-install.sh (sys_create_init_profile):

Change-Id: I8a3287fe809af58aee2edc924154eecf91fa1eb8
---
 etc/guix-install.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 7876afa196..e7a8ca6476 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -549,13 +549,13 @@ export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH"
 # GUIX_PROFILE: User's default profile and home profile
 GUIX_PROFILE="$HOME/.guix-profile"
 [ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile"
-[ -L "$GUIX_PROFILE" ] || \
-GUIX_LOCPATH="$GUIX_PROFILE/lib/locale:${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
+[ -L "$GUIX_PROFILE" ] && \
+GUIX_LOCPATH="$GUIX_PROFILE/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
 
 GUIX_PROFILE="$HOME/.guix-home/profile"
 [ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile"
-[ -L "$GUIX_PROFILE" ] || \
-GUIX_LOCPATH="$GUIX_PROFILE/lib/locale:${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
+[ -L "$GUIX_PROFILE" ] && \
+GUIX_LOCPATH="$GUIX_PROFILE/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
 
 export GUIX_LOCPATH
 
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#70218: [PATCH 0/2] Some fixes for guix-install.sh
  2024-04-05 17:04 [bug#70218] [PATCH 0/2] Some fixes for guix-install.sh Tomas Volf
  2024-04-05 17:09 ` [bug#70218] [PATCH 1/2] guix-install.sh: Add default value for XCURSOR_PATH Tomas Volf
  2024-04-05 17:09 ` [bug#70218] [PATCH 2/2] guix-install.sh: Fix setting GUIX_LOCPATH Tomas Volf
@ 2024-04-29 20:57 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2024-04-29 20:57 UTC (permalink / raw)
  To: Tomas Volf; +Cc: 70218-done

Hi!

Tomas Volf <~@wolfsden.cz> skribis:

> This week I had to install Ubuntu 22.04 (corporate policy, do not judge me, I
> needed Microsoft Intune :/ ).  I (obviously) installed GNU Guix as one of the
> first things I did.  This tiny patch series is composed of fixed I had to do
> to get properly working system.

Heheh, no judgment!  :-)

> Tomas Volf (2):
>   guix-install.sh: Add default value for XCURSOR_PATH.
>   guix-install.sh: Fix setting GUIX_LOCPATH.

Finally applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-29 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 17:04 [bug#70218] [PATCH 0/2] Some fixes for guix-install.sh Tomas Volf
2024-04-05 17:09 ` [bug#70218] [PATCH 1/2] guix-install.sh: Add default value for XCURSOR_PATH Tomas Volf
2024-04-05 17:09 ` [bug#70218] [PATCH 2/2] guix-install.sh: Fix setting GUIX_LOCPATH Tomas Volf
2024-04-29 20:57 ` bug#70218: [PATCH 0/2] Some fixes for guix-install.sh Ludovic Courtès

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).