diff --git a/source/controler.c b/source/controler.c index 1341c8b..f4388af 100644 --- a/source/controler.c +++ b/source/controler.c @@ -22,6 +22,93 @@ void update_time_table(vector* vec_temp) { } } } +#define yon_char_is_empty(string) !(string&&strcmp(string,"")) + +int arg_size; +config_str arg_target; + +gboolean __yon_app_check_helper(const char *app, config_str argv, int argc){ + char *helper_path = yon_char_unite("/usr/bin/",app,"-root",NULL); + if (!access(helper_path,F_OK)){ + for (int i=1;i-1){ + free(yon_char_divide(argline,last_pos)); + } + if (!__yon_app_check_helper(argline, arg_target, arg_size)){ + for (int i=1;iWindow)); + gtk_menu_shell_prepend(GTK_MENU_SHELL(gtk_widget_get_parent(widgets->DocumentationMenuItem)),root_button); filters_set_name("prjquota"); filters_init_flag(); control_event(widgets, &cfg_custom_gui);