Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904969 - app-misc/task is not respecting XDG directories by default
Summary: app-misc/task is not respecting XDG directories by default
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: David Denoncin
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-04-24 17:04 UTC by Jeff Gazso
Modified: 2023-07-11 18:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Gazso 2023-04-24 17:04:27 UTC
As of task-2.6 XDG directories are fully supported but the most recent ebuild does not reflect this. Per the the upstream documentation: in order for that to work out of the box the taskrc file must be relocated to $XDG_CONFIG_HOME/task/taskrc.

Also the following lines need to be uncommented in the default taskrc file:

#data.location=~/.local/share/task
#hooks.location=~/.config/task/hooks

I did some testing and it appears that any existing ~/.taskrc takes precedence over one present in ~/.config/task/taskrc, so existing task lists shouldn't appear to go missing after upgrading to an ebuild with this change. But you might want to add an einfo just in case.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-25 01:05:32 UTC
(In reply to Jeff Gazso from comment #0)
> As of task-2.6 XDG directories are fully supported but the most recent
> ebuild does not reflect this. Per the the upstream documentation: in order
> for that to work out of the box the taskrc file must be relocated to
> $XDG_CONFIG_HOME/task/taskrc.
> 
> Also the following lines need to be uncommented in the default taskrc file:
> 
> #data.location=~/.local/share/task
> #hooks.location=~/.config/task/hooks
> 

But that's not respecting XDG_* variables, it's just picking new (assumed) locations.

> I did some testing and it appears that any existing ~/.taskrc takes
> precedence over one present in ~/.config/task/taskrc, so existing task lists
> shouldn't appear to go missing after upgrading to an ebuild with this
> change. But you might want to add an einfo just in case.

That part is good though.
Comment 2 David Denoncin 2023-07-11 17:12:55 UTC
Sorry for the delay. I'm looking at this now. I guess supporting does not mean that existing installs *should* respect that (see https://github.com/GothenburgBitFactory/taskwarrior/issues/438).

The way to make the transition from the default configuration to the XDG compliant one is well documented in taskrc and looks like it works out of the box: I'll add an einfo so that XDG users know that it is possible.

In the future please link upstream documentation when you refer to it.