parent
d0ec9812a6
commit
bc24ab470d
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ def get_locale_dir():
|
||||||
path, tail = os.path.split(path)
|
path, tail = os.path.split(path)
|
||||||
path, tail = os.path.split(path)
|
path, tail = os.path.split(path)
|
||||||
localedir, tail = os.path.split(path)
|
localedir, tail = os.path.split(path)
|
||||||
|
elif os.path.exists('/app/share/run-as-flatpak'):
|
||||||
|
# Check if we run as flatpak
|
||||||
|
return '/app/share/locale'
|
||||||
else:
|
else:
|
||||||
# fallback to user locale
|
# fallback to user locale
|
||||||
base = os.getenv('XDG_DATA_HOME')
|
base = os.getenv('XDG_DATA_HOME')
|
||||||
|
|
Loading…
Add table
Reference in a new issue