Skip to content

Commit

Permalink
kvui: set home folder to non-default (#4590)
Browse files Browse the repository at this point in the history
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
  • Loading branch information
Berserker66 and black-sliver authored Feb 2, 2025
1 parent 051518e commit 894732b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kvui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
if Utils.is_frozen():
os.environ["KIVY_DATA_DIR"] = Utils.local_path("data")

import platformdirs
os.environ["KIVY_HOME"] = os.path.join(platformdirs.user_config_dir("Archipelago", False), "kivy")
os.makedirs(os.environ["KIVY_HOME"], exist_ok=True)

from kivy.config import Config

Config.set("input", "mouse", "mouse,disable_multitouch")
Expand Down

0 comments on commit 894732b

Please sign in to comment.