+ /* Launcher */
+ else if (strcmp (key, "launcher_padding") == 0) {
+ extract_values(value, &value1, &value2, &value3);
+ panel_config.launcher.area.paddingxlr = panel_config.launcher.area.paddingx = atoi (value1);
+ if (value2) panel_config.launcher.area.paddingy = atoi (value2);
+ if (value3) panel_config.launcher.area.paddingx = atoi (value3);
+ }
+ else if (strcmp (key, "launcher_background_id") == 0) {
+ int id = atoi (value);
+ id = (id < backgrounds->len && id >= 0) ? id : 0;
+ panel_config.launcher.area.bg = &g_array_index(backgrounds, Background, id);
+ }
+ else if (strcmp(key, "launcher_icon_size") == 0) {
+ launcher_max_icon_size = atoi(value);
+ }
+ else if (strcmp(key, "launcher_item_app") == 0) {
+ char *app = strdup(value);
+ panel_config.launcher.list_apps = g_slist_append(panel_config.launcher.list_apps, app);
+ }
+ else if (strcmp(key, "launcher_apps_dir") == 0) {
+
+ GList *list = dir_scan_alpha(value, "*.desktop");
+
+ for (list = g_list_first(list); list; list = g_list_next(list)) {
+ fprintf(stderr, "Add launcher app: %s\n", (const char *)list->data);
+ panel_config.launcher.list_apps = g_slist_append(panel_config.launcher.list_apps, (char *)strdup((const char *)list->data));
+ }
+
+ // Cleanup
+ g_list_free_full(list, g_free);
+ }
+ else if (strcmp(key, "launcher_icon_theme") == 0) {
+ // if XSETTINGS manager running, tint2 use it.
+ if (!icon_theme_name)
+ icon_theme_name = strdup(value);
+ }
+ else if (strcmp(key, "launcher_icon_asb") == 0) {
+ extract_values(value, &value1, &value2, &value3);
+ launcher_alpha = atoi(value1);
+ launcher_saturation = atoi(value2);
+ launcher_brightness = atoi(value3);
+ }
+ else if (strcmp(key, "launcher_tooltip") == 0) {
+ launcher_tooltip_enabled = atoi(value);
+ }
+