test if local or package installed for resources
Is best to test if we use app from git :
- contributor can run without install package
- contributor can modify/test "local" pictures (or other resources)
from pathlib import Path
# in create btn
resDirectory = Path('../data').resolve() # only if we use git, path exists
if not resDirectory.exists():
resDirectory = '/usr/share/gls' # use installed dir by pacman
#print('img:', f"{resDirectory}/pictures/{layout['id']}review.png")
preview_img = Gtk.Image()
preview_img.set_from_file(f"{resDirectory}/pictures/{layout['id']}preview.png")
best is to create a self.resDirectory in init() : only one test and after we use attr self.resDirectory in createbtn()