File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class OpenFormsApplication(Adw.Application):
3636 def __init__ (self ):
3737 super ().__init__ (
3838 application_id = "in.aryank.openforms" ,
39- flags = Gio .ApplicationFlags .DEFAULT_FLAGS ,
39+ flags = Gio .ApplicationFlags .NON_UNIQUE ,
4040 resource_base_path = "/in/aryank/openforms" ,
4141 )
4242 self .config_file = None
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ gnome.compile_resources('open_forms',
1212python = import (' python' )
1313
1414conf = configuration_data ()
15- conf.set(' PYTHON' , python.find_installation( ' python3' ).full_path() )
15+ conf.set(' PYTHON' , ' /usr/bin/env python3' )
1616conf.set(' VERSION' , meson .project_version())
1717conf.set(' localedir' , get_option (' prefix' ) / get_option (' localedir' ))
1818conf.set(' pkgdatadir' , pkgdatadir)
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ VERSION = '@VERSION@'
2929pkgdatadir = '@pkgdatadir@'
3030localedir = '@localedir@'
3131
32+ _snap = os.environ.get("SNAP")
33+
34+ if _snap:
35+ pkgdatadir = os.path.join(_snap, '@pkgdatadir@'.lstrip('/'))
36+ localedir = os.path.join(_snap, '@localedir@'.lstrip('/'))
37+
3238sys.path.insert(1, pkgdatadir)
3339signal.signal(signal.SIGINT, signal.SIG_DFL)
3440locale.bindtextdomain('open_forms', localedir)
You can’t perform that action at this time.
0 commit comments