tuhigui: share the config path with tuhi

The tuhigui.ini settings file where we store the orientation of the device is
now the same config directory tuhi dumps its data in.

The svgs are in an svg subdirectory, just to make them easier to find.
pull/145/head
Peter Hutterer 2019-07-18 13:02:29 +10:00
parent cce5099709
commit 23281976da
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ from pathlib import Path
logger = logging.getLogger('tuhi.gui.config')
ROOT_PATH = Path(xdg.BaseDirectory.xdg_data_home, 'tuhigui')
ROOT_PATH = Path(xdg.BaseDirectory.xdg_data_home, 'tuhi')
class Config(GObject.Object):

View File

@ -17,7 +17,7 @@ import xdg.BaseDirectory
import svgwrite
import os
DATA_PATH = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhigui')
DATA_PATH = os.path.join(xdg.BaseDirectory.xdg_data_home, 'tuhi', 'svg')
class JsonSvg(GObject.Object):