Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=setup/.git;a=commitdiff;h=2835d7166d3f32d2d9858a60209a22dfcc974d0f
commit 2835d7166d3f32d2d9858a60209a22dfcc974d0f
Author: VMiklos <[EMAIL PROTECTED]>
Date: Sun Jul 15 03:39:20 2007 +0200
use fw_system() everywhere for non-interactive external programs
diff --git a/src/plugins/asklang.c b/src/plugins/asklang.c
index d81f7c1..d9e5ada 100644
--- a/src/plugins/asklang.c
+++ b/src/plugins/asklang.c
@@ -75,10 +75,9 @@ int setcharset(char *name, GList **config)
char *ptr;
//TODO: maybe there is a proper system call for this?
- LOG("setting font '%s'", name);
- ptr = g_strdup_printf("setfont %s 2>&1", name);
+ ptr = g_strdup_printf("setfont %s", name);
fw_end_dialog();
- system(ptr);
+ fw_system(ptr);
fw_init_dialog();
FREE(ptr);
// save the font for later usage
diff --git a/src/plugins/hotplug.c b/src/plugins/hotplug.c
index 2801454..2e22837 100644
--- a/src/plugins/hotplug.c
+++ b/src/plugins/hotplug.c
@@ -56,10 +56,9 @@ int run(GList **config)
dialog_vars.backtitle=gen_backtitle(_("Detecting hardware"));
dlg_put_backtitle();
dlg_clear();
- LOG("detecting hardware using '%s'", HOTPLUGSCRIPT);
dialog_msgbox(_("Please wait"), _("Scanning for SCSI and PCI cards"),
0, 0, 0);
- system(HOTPLUGSCRIPT);
+ fw_system(HOTPLUGSCRIPT);
return(0);
}
diff --git a/src/plugins/layout.c b/src/plugins/layout.c
index 05aef90..e2cd06f 100644
--- a/src/plugins/layout.c
+++ b/src/plugins/layout.c
@@ -129,7 +129,7 @@ int run(GList **config)
layout[strlen(layout)-7]='\0';
//TODO: maybe there is a proper system call for this?
- LOG("loading keymap '%s'", layout);
+ LOG("selected layout '%s'", layout);
ptr = g_strdup_printf("loadkeys /usr/share/kbd/keymaps/i386/%s.map.gz", layout);
fw_system(ptr);
FREE(ptr);
diff --git a/src/plugins/partdisk.c b/src/plugins/partdisk.c
index f6691a6..b8b52c0 100644
--- a/src/plugins/partdisk.c
+++ b/src/plugins/partdisk.c
@@ -197,7 +197,7 @@ int run(GList **config)
return(-1);
strcpy(partsw, ptr);
fw_end_dialog();
- system(g_strdup_printf("%s %s", partsw, path));
+ fw_system(g_strdup_printf("%s %s", partsw, path));
fw_init_dialog();
}
else if (ret == DLG_EXIT_EXTRA)
diff --git a/src/plugins/select.c b/src/plugins/select.c
index db91614..a81f48f 100644
--- a/src/plugins/select.c
+++ b/src/plugins/select.c
@@ -327,7 +327,7 @@ int prepare_pkgdb(char *repo, GList **config, GList **syncs)
{
makepath(pkgdb);
// TODO: use libarchive for this
- system(g_strdup_printf("tar xjf %s/%s.fdb -C %s",
pacbindir, repo, pkgdb));
+ fw_system(g_strdup_printf("tar xjf %s/%s.fdb -C %s",
pacbindir, repo, pkgdb));
if ((fp = fopen("/etc/pacman.conf", "w")) == NULL)
{
perror(_("Could not open output file for writing"));
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git