determine android_gui at runtime
This commit is contained in:
committed by
Sander van Grieken
parent
553ccdebd1
commit
064ac55059
@@ -322,12 +322,14 @@ def main():
|
|||||||
|
|
||||||
# config is an object passed to the various constructors (wallet, interface, gui)
|
# config is an object passed to the various constructors (wallet, interface, gui)
|
||||||
if is_android:
|
if is_android:
|
||||||
|
import importlib
|
||||||
|
android_gui = 'kivy' if importlib.find_loader('kivy') else 'qml'
|
||||||
from jnius import autoclass
|
from jnius import autoclass
|
||||||
build_config = autoclass("org.electrum.electrum.BuildConfig")
|
build_config = autoclass("org.electrum.electrum.BuildConfig")
|
||||||
config_options = {
|
config_options = {
|
||||||
'verbosity': '*', #if build_config.DEBUG else '',
|
'verbosity': '*', #if build_config.DEBUG else '',
|
||||||
'cmd': 'gui',
|
'cmd': 'gui',
|
||||||
'gui': 'qml',
|
'gui': android_gui,
|
||||||
'single_password':True,
|
'single_password':True,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user