Merged in changes from dflemstr (thanks!)
[pandora-libraries.git] / include / pnd_desktop.h
1
2 #ifndef h_pnd_desktop_h
3 #define h_pnd_desktop_h
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9
10 #define PND_PNDHUP_KEY "launcher.hupscript"
11 #define PND_PNDHUP_FILENAME "pnd_hup.sh"
12
13 // emit_dotdesktop() will determine a filename and create a FILENAME.desktop file in the targetpath
14 // TODO: Copy the icon into this directory as well, if its source is a .pnd or info is in the dico struct
15 #define PND_DOTDESKTOP_HEADER "[Desktop Entry]"
16 #define PND_DOTDESKTOP_SOURCE "_Source=libpnd"
17 unsigned char pnd_emit_dotdesktop ( char *targetpath, char *pndrun, pnd_disco_t *p );
18
19 // emit_icon() will attempt to copy the icon from a PXML directory, or from a pnd file if appended,
20 // to the given directory; returns 1 on sucess, otherwise is a fail.
21 unsigned char pnd_emit_icon ( char *targetpath, pnd_disco_t *p );
22
23
24 #ifdef __cplusplus
25 } /* "C" */
26 #endif
27
28 #endif