Allow to compile on Hurd
From http://trac.galago-project.org/ticket/166
This commit is contained in:
parent
4b11bb71cf
commit
7b4a0ce00b
|
@ -45,8 +45,7 @@ NotifyNotification *n;
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char file[PATH_MAX];
|
char *file;
|
||||||
int size;
|
|
||||||
char *uri;
|
char *uri;
|
||||||
GdkPixbuf *icon;
|
GdkPixbuf *icon;
|
||||||
GtkWidget *helper;
|
GtkWidget *helper;
|
||||||
|
@ -68,10 +67,10 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
g_object_unref(G_OBJECT(n));
|
g_object_unref(G_OBJECT(n));
|
||||||
|
|
||||||
size = readlink("/proc/self/cwd", file, PATH_MAX - 1);
|
file = g_get_current_dir();
|
||||||
file[size] = '\0';
|
|
||||||
uri = g_strdup_printf("file://%s/%s", file, "applet-critical.png");
|
uri = g_strdup_printf("file://%s/%s", file, "applet-critical.png");
|
||||||
|
|
||||||
|
g_free(file);
|
||||||
printf("sending %s\n", uri);
|
printf("sending %s\n", uri);
|
||||||
|
|
||||||
/* URIs */
|
/* URIs */
|
||||||
|
|
Loading…
Reference in New Issue