# HG changeset patch # User Goffi # Date 1561901998 -7200 # Node ID 2464b3531f684cb4f390e5937cf8f68cccf26fb3 # Parent a9e0bbedeac2c06392f1681df472deaa33ac0c94 core (constants): fixed flatpak config paths for older versions of flatpak: Older versions of Flatpak don't seem to set FLATPAK_ID, but do set FLATPAK_SANDBOX_DIR, so this is now checked too to detect flatpak. diff -r a9e0bbedeac2 -r 2464b3531f68 sat/core/constants.py --- a/sat/core/constants.py Thu Jun 27 20:32:18 2019 +0200 +++ b/sat/core/constants.py Sun Jun 30 15:39:58 2019 +0200 @@ -218,7 +218,10 @@ ] ) - if os.getenv('FLATPAK_ID'): + # on recent versions of Flatpak, FLATPAK_ID is set at run time + # it seems that this is not the case on older versions, + # but FLATPAK_SANDBOX_DIR seems set then + if os.getenv('FLATPAK_ID') or os.getenv('FLATPAK_SANDBOX_DIR'): # for Flatpak, the conf can't be set in /etc or $HOME, so we have # to add /app CONFIG_PATHS.append('/app/')