mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-24 13:26:52 +03:00
4317569de1
* lib/startup.links: Changed the news link to Gnotices 1999-09-19 David Martin <dmartina@usa.net> * gtkedit/editcmd.c (edit_print_string): Use unsigned char so that 8 bit chars from strftime get displayed when inserting date. * lib/mc.ext.in: Add entries for bzip2 compressed pages as used in Mandrake 6.0. The generic entry for bzip2 moved to the end of the file to avoid interferences. In this one I changed the extension check to a type check (as used for gzip) which might give problems in some systems.
35 lines
745 B
C
35 lines
745 B
C
/* Printing support for the Midnight Commander
|
|
*
|
|
* Copyright (C) 1998-1999 The Free Software Foundation
|
|
*
|
|
* Authors: Miguel de Icaza <miguel@nuclecu.unam.mx>
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include "main.h"
|
|
#include "util.h"
|
|
#include <libgnome/libgnome.h>
|
|
#include "gdesktop.h"
|
|
#include "gprint.h"
|
|
|
|
void
|
|
gprint_setup_devices (void)
|
|
{
|
|
static char *gprint_path;
|
|
char *desktop_quoted;
|
|
char *command;
|
|
|
|
if (!gprint_path)
|
|
gprint_path = gnome_is_program_in_path ("g-print");
|
|
|
|
if (!gprint_path)
|
|
return;
|
|
|
|
desktop_quoted = name_quote (desktop_directory, 0);
|
|
command = g_strconcat (gprint_path, " --desktop-dir ", desktop_quoted, NULL);
|
|
g_free (desktop_quoted);
|
|
|
|
my_system (EXECUTE_WAIT | EXECUTE_AS_SHELL, shell, command);
|
|
g_free (command);
|
|
}
|