Skip to content

Commit

Permalink
Merge pull request #5 from sonofevil/patch-1
Browse files Browse the repository at this point in the history
make cache dir
  • Loading branch information
ther0n committed Oct 26, 2023
2 parents 92e9aaa + 28245cc commit 2f2e0c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beefweb_mpris/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def main():
register_event_handler(beefweb, mpris, adapter)

foobar2000.wait()
shutil.rmtree(f'{GLib.get_user_cache_dir()}/beefweb_mpris')

cache_dir = GLib.get_user_cache_dir()
if not os.path.exists(cache_dir+'/beefweb_mpris'):
os.makedirs(cache_dir+'/beefweb_mpris')
shutil.rmtree(cache_dir+'/beefweb_mpris')


if __name__ == '__main__':
Expand Down

0 comments on commit 2f2e0c6

Please sign in to comment.