Open sachinchaudhary1808 opened 1 month ago
Sorry, don't know much about either foot service or neovim. Perhaps @plabadens can help?
When you open a foot window, what does echo $PATH
say?
Sorry, don't know much about either foot service or neovim. Perhaps @plabadens can help?
When you open a foot window, what does
echo $PATH
say?
echo $PATH /run/wrappers/bin:/home/coco/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/coco/.nix-profile/bin:/nix/profile/bin:/home/coco/.local/state/nix/profile/bin:/etc/profiles/per-user/coco/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
i don't know if path is the issue but when i do foot -e nvim when server is running it just dosen't show me anything but when i open footclient and run nvim then it works
to be sure it's a home-manager issue i tried comment the server.enable = true line in config and started foot --server on my sway config and things just work fine
and only something sap-rate related to this, that i had to remove dead code related to foot service cuz of it was not working, i guess foot module really needs some upgrade here
The reason this happens is that, by default, any new instances of footclient
will run within the environment of the server (see under -E
in https://man.archlinux.org/man/extra/foot/footclient.1.en). The server runs through a systemd user service, and does not have access to your entire path. There are two approaches to solve this:
systemctl --user import-environment
as part of your session setup (maybe WM config?) should do the trick.-E
, so that it uses the environment of the client instead of the server.I don't believe that this is an issue with home-manager itself, as it's one of the caveats of using foot in client-server mode.
- systemctl --user import-environment
also i get this
❯ systemctl --user import-environment Calling import-environment without a list of variable names is deprecated.
also this doesn't do any trick maybe some errors i have
exec systemctl --user import-environment
this in my config file
also doing like
exec systemctl --user import-environment PATH
does nothing too
Are you following the right branch?
Is there an existing issue for this?
Issue description
https://codeberg.org/dnkl/foot/issues/1844#issuecomment-2397192
Maintainer CC
No response
System information