{
unsigned int attempt = 0, max_attempt = 0, expire_sec;
- auth_passwd_check_passwd_state(AUTH_PWD_NORMAL, &attempt, &max_attempt, &expire_sec);
+ auth_passwd_check_passwd_state(AUTH_PWD_NORMAL, &attempt, &max_attempt, &expire_sec);
if (max_attempt == 0) {
return 0xffffffff;
shortcut_add_to_home(krate_name, LAUNCH_BY_URI, uri, ICON_PATH "/shortcut_icon.png", 0, NULL, NULL);
}
+static void __remove_shortcut(const char* krate_name)
+{
+ shortcut_remove_from_home(krate_name, NULL, NULL);
+}
+
static bool __app_create(void *data)
{
return true;
__add_shortcut(krate_name);
ui_app_exit();
return;
+ } else if (strncmp(tmp, "cleanup/", sizeof("cleanup/") - 1) == 0) {
+ char *krate_name;
+
+ krate_name = tmp + sizeof("cleanup/") - 1;
+ __remove_shortcut(krate_name);
+ ui_app_exit();
+ return;
} else if (strncmp(tmp, "enter/", sizeof("enter/") - 1) == 0) {
char* krate_name, *launch_parameter;
char new_uri[PATH_MAX];
if (launch_parameter != NULL) {
*(launch_parameter++) = '\0';
if (launch_parameter[0] == '\0') {
- launch_parameter = KASKIT_PACKAGE;
+ launch_parameter = KASKIT_PACKAGE;
}
} else {
launch_parameter = KASKIT_PACKAGE;
__launch_krate_app(krate_name, app_control);
ui_app_exit();
return;
- }else if (strncmp(tmp, "launch/", sizeof("launch/") - 1) == 0) {
+ } else if (strncmp(tmp, "launch/", sizeof("launch/") - 1) == 0) {
char* app_id;
app_id = tmp + sizeof("launch/") - 1;