Re: error: %guix-register-program: unbound variable on guix time-machine
Hi Simon, Simon Tournier writes: > Hi Maxim, > > On Wed, 31 May 2023 at 21:15, Maxim Cournoyer > wrote: >> Hello, >> >> Attempting to navigate to a relatively distant past (Wed Jan 25 23:42:11 >> 2017 -0500) with commit 9b9e147117e6009451d7acc1f8f156e041263e32, I hit: > > [...] > >> Is this expected? info '(guix) Invoking guix time-machine' does not >> mention of any point "too far" in the past to travel to. > > It’s expected. It’s not possible to travel so far back. The zero for > time-traveling is the introduction of “inferiors” mechanism around 2019. > > Well, since the question is recurrent, I agree that: > > 1. the manual needs to be improved; > 2. the command “guix time-machine” should raise a gentle error when the > specification is unreachable. I've sent a patch doing both 1 and 2 above to guix-patches; you were CC'd on it. Let me know what you think! -- Thanks, Maxim
Re: ibus + ibus-libpinyin in Gnome
Hi, Luis Felipe writes: >> The GTK_IM_MODULE environment variable is set to “ibus”. I export it in >> the shell and launch “soffice” or “icecat” from there. > > Hmm, I don't have GTK_IM_MODULE set in my ~/.profile (don't remember > why I removed it...). I have these: > > # GUIX RELATED VARIABLES TO WORK AROUND BUG #35610 > # https://issues.guix.gnu.org/issue/35610 > # export > > GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache" > export > GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache" Oh… I remember these from commit 234e7980b54ef37e9a24440ec7219c81d6288a71. After setting GUIX_GTK3_IM_MODULE_FILE everything is good. Thank you so much for reminding me about these variables! I wonder if we can do better here to provide a working configuration out of the box. If even the author of the patch to add support for the GUIX_GTK3_IM_MODULE_FILE variable cannot remember setting it then we probably cannot expect users of input methods to figure this out by themselves. Perhaps some desktop service or home service should exist that sets these variables for the user (either in /etc/environment or per session)? -- Ricardo
Using NoiseTorch with Sway and Polkit
Hi Guix, I am trying to run NoiseTorch on my desktop, which runs swaywm and pipewire. I added the following configuration to my system: (setuid-programs (append (list (setuid-program (program (file-append noisetorch "/bin/NoiseTorch" %setuid-programs)) and rebuilt my system. When I run NoiseTorch from my path (the system), I get this error: XGB: conn.go:47: Could not get authority info: open /home/robby/.Xauthority: no such file or directory XGB: conn.go:48: Trying connection without authority info... panic: x protocol authentication refused: Authorization required, but no authorization protocol specified goroutine 1 [running]: github.com/noisetorch/NoiseTorch/vendor/github.com/aarzilli/nucular/clipboard.Start() /tmp/guix-build-noisetorch-0.12.2.drv-0/src/github.com/noisetorch/NoiseTorch/vendor/github.com/aarzilli/nucular/clipboard/clipboard_x11.go:28 +0x354 github.com/noisetorch/NoiseTorch/vendor/github.com/aarzilli/nucular.NewMasterWindowSize(0xc0001b, {0x7b04b4, 0xa}, {0x0, 0x}, 0x0) /tmp/guix-build-noisetorch-0.12.2.drv-0/src/github.com/noisetorch/NoiseTorch/vendor/github.com/aarzilli/nucular/shiny.go:83 +0x114 main.main() /tmp/guix-build-noisetorch-0.12.2.drv-0/src/github.com/noisetorch/NoiseTorch/main.go:77 +0x371 When I install NoiseTorch as my user and run it directly I get the following: robby@lambda ~$ /home/robby/.guix-profile/bin/NoiseTorch XGB: conn.go:47: Could not get authority info: open /home/robby/.Xauthority: no such file or directory XGB: conn.go:48: Trying connection without authority info... XGB: conn.go:47: Could not get authority info: open /home/robby/.Xauthority: no such file or directory XGB: conn.go:48: Trying connection without authority info... XGB: conn.go:47: Could not get authority info: open /home/robby/.Xauthority: no such file or directory XGB: conn.go:48: Trying connection without authority info... AUTHENTICATING FOR org.freedesktop.policykit.exec Authentication is needed to run `/gnu/store/bpvbbg981p5cmj1qvr0c81czjgp0bq4l-noisetorch-0.12.2/bin/NoiseTorch' as the super user Authenticating as: Robby Zambito (robby) Password: AUTHENTICATION FAILED The GUI will open (unlike the other method), but it will prompt saying it does not have the "capabilities to function properly", and a button to grant it the capabilities it needs (requiring root). Clicking the button will prompt for my password, but entering the correct password does not work (I have tried dozens of times, I know I'm typing it right) I found a supposed solution to this for Nix, but this solution yields the same results for me: https://github.com/NixOS/nixpkgs/issues/18012#issuecomment-335350903 If anyone has any insight that would be greatly appreciated! Robby
Re: ibus + ibus-libpinyin in Gnome
Hi Ricardo, El 18/07/23 a las 21:14, Ricardo Wurmus escribió: Hi Guix, I’m still struggling with ibus + ibus-libpinyin on Gnome. ibus-libpinyin works in the gnome-shell input field, but the input method doesn’t work in any of the applications such as icecat, console, or soffice. Surprisingly, it works for me (I haven't been able to type Japanese for months). I tried in icecat and console. The GTK_IM_MODULE environment variable is set to “ibus”. I export it in the shell and launch “soffice” or “icecat” from there. Hmm, I don't have GTK_IM_MODULE set in my ~/.profile (don't remember why I removed it...). I have these: # GUIX RELATED VARIABLES TO WORK AROUND BUG #35610 # https://issues.guix.gnu.org/issue/35610 # export GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache" export GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache" # These are needed only to work on Qt apps like TeXmacs. export XMODIFIERS="@im=ibus" # Set X input method server (xim) to ibus. export QT_IM_MODULE="ibus" # Set Qt input method module to ibus. ibus and ibus-libpinyin are installed in the system profile as well as the user profile. I previously had installed them only in the user profile, but then added them to the system profile because I want to be sure that any required environment variables are set in all contexts, even when launching applications from the Gnome shell. I install ibus engines in my profile. I tried installing them in the system profile, and that never worked for me. But I haven't tried recently. Do you have any ideas how to best debug this? I could strace the applications and see if any of them mention a failure to talk to ibus, but I’d like to avoid having to sift through all that noisy trace output for massive GTK applications. For what it's worth, I was suggested to run the engine directly when I was having trouble with ibus-stt (https://github.com/PhilippeRo/IBus-Speech-To-Text/discussions/7). So maybe /gnu/store/1s0p8fk1bgp0v2gv5dgjgpq1v4p3nwji-ibus-libpinyin-1.15.2/libexec/ibus-engine-libpinyin --gapplication-replace -g That helped me fix some ibus-stt errors. (And actually, I see an error when running the ibus-anthy engine, which might be why I can't even find the engine listed in input options). Good luck, -- Luis Felipe López Acevedo https://luis-felipe.gitlab.io/ OpenPGP_0x0AB0D067012F08C3.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature