Fixed pluggable application parameter loading

pull/80/head
parent 2222857832
commit 1483aafabc

@ -31,7 +31,7 @@ int yon_app_set_from_file(apps *target, const char *path){
target->Categories = yon_char_parse(categories,&target->categories_size,";"); target->Categories = yon_char_parse(categories,&target->categories_size,";");
target->Exec = g_key_file_get_string(cur_file,"Desktop Entry","Exec",NULL); target->Exec = g_key_file_get_string(cur_file,"Desktop Entry","Exec",NULL);
target->Icon = g_key_file_get_string(cur_file,"Desktop Entry","Icon",NULL); target->Icon = g_key_file_get_string(cur_file,"Desktop Entry","Icon",NULL);
char *pluggable = g_key_file_get_string(cur_file,"Desktop Entry","X-XfxePluggable",NULL); char *pluggable = g_key_file_get_string(cur_file,"Desktop Entry","X-XfcePluggable",NULL);
target->Pluggable = !yon_char_is_empty(pluggable)&&!strcmp(pluggable,"true"); target->Pluggable = !yon_char_is_empty(pluggable)&&!strcmp(pluggable,"true");
char *dual_pluggable = g_key_file_get_string(cur_file,"Desktop Entry","X-UBLPluggable",NULL); char *dual_pluggable = g_key_file_get_string(cur_file,"Desktop Entry","X-UBLPluggable",NULL);
target->DualPluggable = !yon_char_is_empty(dual_pluggable)&&!strcmp(dual_pluggable,"true"); target->DualPluggable = !yon_char_is_empty(dual_pluggable)&&!strcmp(dual_pluggable,"true");

Loading…
Cancel
Save