Skip to content

Commit eae17e5

Browse files
Use different graceful exit strategy on armel
1 parent 174371c commit eae17e5

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

launcher/main.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,14 @@ int main(void) {
196196
app_pid = -1; // So we know the program has quit
197197

198198
Log("Exiting");
199-
// Calls unload - gracefully exits
200-
char* value;
201-
LipcGetStringProperty(lipc, "com.lab126.appmgrd", "popAppHistory", &value);
202-
LipcFreeString(value);
199+
200+
#ifdef ARCH_ARMHF
201+
char* value;
202+
LipcGetStringProperty(lipc, "com.lab126.appmgrd", "popAppHistory", &value);
203+
LipcFreeString(value);
204+
#else
205+
LipcSetStringProperty(lipc, "com.lab126.appmgrd", "start", "app://com.lab126.booklet.home");
206+
#endif
203207
}
204208
}
205209

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
project('sh_integration', 'c', version : '3.1.0', default_options: ['warning_level=everything'])
22

3+
arch = meson.get_external_property('arch', 'armhf')
4+
if arch == 'armhf'
5+
add_project_arguments('-DARCH_ARMHF', language: 'c')
6+
endif
7+
38
# Fetch our dependencies
49
subproject('cjson', default_options: ['default_library=static']).get_variable('libcjson_dep')
510
cjson_dep = dependency('libcjson')
611

712
subdir('./stubs')
8-
lipc_dep = lipc_stub_dep#dependency('lipc')
13+
lipc_dep = lipc_stub_dep
914

1015
subdir('./launcher')
1116
subdir('./extractor')

0 commit comments

Comments
 (0)