Skip to content
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

$XDG_DATA_DIRS and $XDG_DATA_HOME support #74

Open
ralismark opened this issue Jan 28, 2023 · 4 comments
Open

$XDG_DATA_DIRS and $XDG_DATA_HOME support #74

ralismark opened this issue Jan 28, 2023 · 4 comments

Comments

@ralismark
Copy link
Contributor

Would you consider adding support for looking in $XDG_DATA_DIRS and the paths listed in $XDG_DATA_HOME for fortunes? This would allow fortunes to be put in places other than the directories that are built into the binary, and allow them to use used without specifying the path to them.

Specific usecases include:

I'm happy to help implement this, just kinda want your thoughts on it first before I go ahead.

@shlomif
Copy link
Owner

shlomif commented Jan 28, 2023 via email

@shlomif
Copy link
Owner

shlomif commented Feb 22, 2023

@ralismark : ping.

@ralismark
Copy link
Contributor Author

@shlomif still working on this! been pretty busy with other stuff the past few weeks, plus getting an understanding of the source code. I'm probably going to completely rework the file lookup logic since it's pretty messy and has a few bugs

@teto
Copy link

teto commented Jun 20, 2023

that would be awesome. Does the closed PR work already ? I could use it 'till it makes it to upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants