comparison sat/core/constants.py @ 2970:9a47a8caa280

core (constants): fixed Flatpak config path: trailing "/" was missing in flatpak config path, resulting in the configuration not being read properly on this platform.
author Goffi <goffi@goffi.org>
date Thu, 27 Jun 2019 20:26:00 +0200
parents 121c4a2a567c
children 2464b3531f68
comparison
equal deleted inserted replaced
2969:eafea3bcf111 2970:9a47a8caa280
219 ) 219 )
220 220
221 if os.getenv('FLATPAK_ID'): 221 if os.getenv('FLATPAK_ID'):
222 # for Flatpak, the conf can't be set in /etc or $HOME, so we have 222 # for Flatpak, the conf can't be set in /etc or $HOME, so we have
223 # to add /app 223 # to add /app
224 CONFIG_PATHS.append('/app') 224 CONFIG_PATHS.append('/app/')
225 225
226 ## Configuration ## 226 ## Configuration ##
227 DEFAULT_CONFIG = { 227 DEFAULT_CONFIG = {
228 "media_dir": "/usr/share/" + APP_NAME_FILE + "/media", 228 "media_dir": "/usr/share/" + APP_NAME_FILE + "/media",
229 "local_dir": BaseDirectory.save_data_path(APP_NAME_FILE), 229 "local_dir": BaseDirectory.save_data_path(APP_NAME_FILE),