summaryrefslogtreecommitdiff
path: root/src/tests/efreet/ef_utils.c
blob: 7ecda39661ea15eb8ad306ddf6cadc452e30c70f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <stdio.h>

#include <Efreet.h>

int
ef_cb_utils(void)
{
   Efreet_Desktop *desktop;
   const char *tmp2;

   printf("\n");

   tmp2 = efreet_util_path_to_file_id("/usr/share/applications/this/tmp/test.desktop");
   if (tmp2) printf("%s\n", tmp2);

   desktop = efreet_util_desktop_file_id_find("kde-kresources.desktop");
   printf("kde-kresources.desktop: %p\n", desktop);
   efreet_desktop_free(desktop);

   desktop = efreet_util_desktop_file_id_find("mplayer.desktop");
   printf("mplayer.desktop: %p\n", desktop);
   efreet_desktop_free(desktop);

   desktop = efreet_util_desktop_file_id_find("nautilus-computer.desktop");
   printf("nautilus-computer.desktop: %p\n", desktop);
   efreet_desktop_free(desktop);

   return 1;
}