Skip to content

Commit

Permalink
fixed glade file in flatpack
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano prina committed Jun 15, 2022
1 parent eed160e commit c2a411e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gresistor3/gresistor.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,18 @@ def main():
'gresistor.glade'
)

flatpack_glade_file = os.path.join(
"/app/share/gresistor/gresistor.glade"
)

if os.path.exists(repo_glade_file):
run_gresistor(repo_glade_file)
elif os.path.exists(env_glade_file):
run_gresistor(env_glade_file)
elif os.path.exists(local_glade_file):
run_gresistor(local_glade_file)
elif os.path.exists(flatpack_glade_file):
run_gresistor(flatpack_glade_file)
else:
run_gresistor(sys_glade_file)

Expand Down

0 comments on commit c2a411e

Please sign in to comment.