Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 904969

Summary: app-misc/task is not respecting XDG directories by default
Product: Gentoo Linux Reporter: Jeff Gazso <jeff.gazso>
Component: Current packagesAssignee: David Denoncin <gentoo>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, jeff.gazso, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31842
Whiteboard:
Package list:
Runtime testing required: ---

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.