Группа :: Графические оболочки/Прочее
Пакет: desktop-file-utils
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: update-desktop-database-ALT.patch
--- desktop-file-utils-0.10/src/update-desktop-database.c~ 2004-11-15 14:43:55 +0300
+++ desktop-file-utils-0.10/src/update-desktop-database.c 2004-11-15 15:03:45 +0300
@@ -436,6 +436,24 @@ get_default_search_path (void)
static char **args = NULL;
char **data_dirs;
int i;
+ gchar *applications = "applications";
+ gchar *standard_menu_user,*custom_menu_user,*standard_menu_system;
+ standard_menu_user = g_build_filename (g_get_home_dir (), ".menu/disable_customization", NULL);
+ custom_menu_user = g_build_filename (g_get_home_dir (), ".menu/enable_customization", NULL);
+ standard_menu_system = "/etc/menu/disable_customization";
+ if( access(standard_menu_user, F_OK) != 0)
+ {
+ if( access(custom_menu_user, F_OK) != 0)
+ {
+ applications = "applications-alt";
+ }
+ else
+ {
+ if( access(standard_menu_system, F_OK) != 0)
+ applications = "applications-alt";
+ }
+ }
+
if (args != NULL)
return (const char **) args;
@@ -447,7 +465,7 @@ get_default_search_path (void)
args = g_new (char *, i + 1);
for (i = 0; data_dirs[i] != NULL; i++)
- args[i] = g_build_filename (data_dirs[i], "applications", NULL);
+ args[i] = g_build_filename (data_dirs[i], applications, NULL);
g_strfreev (data_dirs);