Can't properly include external file #659

Closed
opened 3 months ago by flipflop133 · 3 comments

I didn't find anywhere how to include an external file in foot, I'm currently using:
include=/home/francois/.config/foot/colors
which of course looks ridiculous...
I tried the following:

include=$HOME/francois/.config/foot/colors

include=~/.config/foot/colors

include=XDG_CONFIG_HOME/.config/foot/colors

but I'm getting the following error everytime:
error: /home/francois/.config/foot/foot.ini:7: [default]: XDG_CONFIG_HOME/.config/foot/colors: not an absolute path

I didn't find anywhere how to include an external file in foot, I'm currently using: `include=/home/francois/.config/foot/colors` which of course looks ridiculous... I tried the following: ``` include=$HOME/francois/.config/foot/colors include=~/.config/foot/colors include=XDG_CONFIG_HOME/.config/foot/colors ``` but I'm getting the following error everytime: `error: /home/francois/.config/foot/foot.ini:7: [default]: XDG_CONFIG_HOME/.config/foot/colors: not an absolute path`
Owner

The include directive currently does not support environment variable expansion, which is why examples 1 and 3 above does not work.

It also requires an absolute path, which is why example 2 does not work.

Both of these use cases were mentioned in the PR that implemented it.

Adding support for ~ would be the easiest option.

The `include` directive currently does not support environment variable expansion, which is why examples 1 and 3 above does not work. It also requires an absolute path, which is why example 2 does not work. Both of these use cases were mentioned in the [PR](https://codeberg.org/dnkl/foot/issues/561#issuecomment-207918) that implemented it. Adding support for `~` would be the easiest option.
dnkl added the
enhancement
label 3 months ago
Poster

Ok thanks a lot for your fast answer, waiting for a new release then.

Ok thanks a lot for your fast answer, waiting for a new release then.
flipflop133 closed this issue 3 months ago
Owner

Let's keep this issue open until it's actually been fixed ;)

Let's keep this issue open until it's actually been fixed ;)
dnkl reopened this issue 3 months ago
dnkl closed this issue 3 months ago
dnkl referenced this issue from a commit 3 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.