-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
fcitx-configtool: Point exec_prefix to installed location of fcitx-remote #60285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes errors like this printed to the console when changing settings using `fcitx-config-gtk3`: ``` (fcitx-config-gtk3:17980): GLib-WARNING **: 12:24:47.394: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone's code. You must ensure an error is NULL before it's set. The overwriting error message was: Failed to execute child process “/nix/store/02i4q909l3jk6080zb57jmd23ra4244x-fcitx-configtool-0.4.10/bin/fcitx-remote” (No such file or directory) ```
substituteInPlace config.h.in \ | ||
--subst-var-by exec_prefix ${fcitx} | ||
''; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shoulnd't this be fixed upstream instead ? it seems to be looking for fcitx find_package(Fcitx 4.2.8 REQUIRED)
so it could use the correct path no ? https://gitlab.com/fcitx/fcitx-configtool/blob/master/CMakeLists.txt#L43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to patch CMakeLists.txt to point exec_prefix to the right place. I'll try to submit this patch upstream, but I don't know how to navigate their merge request workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teto please take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works like github you an fork from https://gitlab.com/fcitx/fcitx-configtool and generate a PR there. The fix doesn't look nixos specific so best upstream though we can carry it until then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened https://gitlab.com/fcitx/fcitx-configtool/merge_requests/17 upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks I subscribed to the PR. Let's see how it goes
I think this has been addressed by commit 05c94e3. |
Motivation for this change
Fixes errors like this printed to the console when changing settings using
fcitx-config-gtk3
:Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)