void-packages/srcpkgs/remhind/patches/xdg.patch

37 lines
1.3 KiB
Diff

diff -ur remhind-0.1.1.orig/remhind/__main__.py remhind-0.1.1/remhind/__main__.py
--- remhind-0.1.1.orig/remhind/__main__.py 2023-10-10 21:58:25.792467164 -0400
+++ remhind-0.1.1/remhind/__main__.py 2023-10-10 22:00:58.599184654 -0400
@@ -5,7 +5,7 @@
import gi
import toml
-from xdg import XDG_CONFIG_HOME, XDG_CACHE_HOME
+from xdg_base_dirs import xdg_config_home, xdg_cache_home
from .monitor import monitor_calendars
from .events import check_events, CalendarStore
@@ -33,9 +33,9 @@
def main():
parser = argparse.ArgumentParser(description="remind event from vdirs")
parser.add_argument('-c', '--config', type=pathlib.Path,
- default=XDG_CONFIG_HOME / 'remhind' / 'config')
+ default=xdg_config_home() / 'remhind' / 'config')
parser.add_argument('-d', '--database', type=pathlib.Path,
- default=XDG_CACHE_HOME / 'remhind.db')
+ default=xdg_cache_home() / 'remhind.db')
parser.add_argument('-v', '--verbose', action='count', default=0)
asyncio.run(monitor_file_events(parser.parse_args()))
diff -ur remhind-0.1.1.orig/setup.cfg remhind-0.1.1/setup.cfg
--- remhind-0.1.1.orig/setup.cfg 2023-10-10 21:58:25.793467169 -0400
+++ remhind-0.1.1/setup.cfg 2023-10-10 22:01:05.341216310 -0400
@@ -27,7 +27,7 @@
PyGObject
toml
tzlocal
- xdg
+ xdg-base-dirs
[options.entry_points]
console-scripts =