* Makefile.in: Converted to ...
[midnight-commander.git] / gnome / gprint.c
blobcd9d02a42dbf68a1330d6b46a8aa33c02663b3f5
1 /* Printing support for the Midnight Commander
3 * Copyright (C) 1998-1999 The Free Software Foundation
5 * Authors: Miguel de Icaza <miguel@nuclecu.unam.mx>
6 */
8 #include <config.h>
9 #include "x.h"
10 #include "main.h"
11 #include "util.h"
12 #include "gdesktop.h"
13 #include "gprint.h"
15 void
16 gprint_setup_devices (void)
18 static char *gprint_path;
19 char *desktop_quoted;
20 char *command;
22 if (!gprint_path)
23 gprint_path = gnome_is_program_in_path ("g-print");
25 if (!gprint_path)
26 return;
28 desktop_quoted = name_quote (desktop_directory, 0);
29 command = g_strconcat (gprint_path, " --desktop-dir ", desktop_quoted, NULL);
30 g_free (desktop_quoted);
32 my_system (EXECUTE_WAIT | EXECUTE_AS_SHELL, shell, command);
33 g_free (command);