forked from solderpunk/AV-98
Incompatible ‘xdg’ modules #6
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
offpunk
is currently trying toimport xdg
and uses a workaround if the module is not found. However, there are at least two modules that install asxdg
but have different APIs:These modules are incompatible. If a user has installed ‘the wrong one’,
offpunk
will be able to import it but the subsequent calls toxdg_*_home()
will fail:ArchLinux has decided that
pyxdg
is the ‘right’ XDG provider, and several of ArchLinux' official packages depend on this module. Thus, whilexdg
exists as an AUR package, installing it will conflict withpyxdg
and pull the carpet away under the feet of several official ArchLinux packages.offpunk
could simply test ifxdg.xdg_cache_home()
exists and use the workaround if not, but how about supporting both flavours of thexdg
module? Something along the lines of:Would that be an acceptable solution?
Cheers.
thanks for the report, could you please test this fix ?
No problems so far. Thanks for your swift action.
Hey,
Could you please test the last commit? I’ve completely removed any dependancy to xdg-libraries and implemented it myself (which is, suprizingly, shorter code).
Looks good to me!