From 31a01fddb038535690783feb3e76bcd35c1edb16 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 16 Aug 2007 00:18:55 +0200 Subject: [PATCH] Add dolconf to dsh menu. --- clients/gui-shell/dsh-menu.desc | 4 +++- clients/gui-shell/dsh.c | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/clients/gui-shell/dsh-menu.desc b/clients/gui-shell/dsh-menu.desc index 69e675e..10e8f17 100644 --- a/clients/gui-shell/dsh-menu.desc +++ b/clients/gui-shell/dsh-menu.desc @@ -2,5 +2,7 @@ ;hasaccels: y :menu name: menu var: y $menuitem name: dolcon label: "Start interface" sig: activate - $smenuitem name: quit stock: QUIT sig: activate + $menuitem name: dolconf label: "Configure" sig: activate + $menusep + $menuitem name: quit label: "Shut down" sig: activate end diff --git a/clients/gui-shell/dsh.c b/clients/gui-shell/dsh.c index e5bb9bb..b688668 100644 --- a/clients/gui-shell/dsh.c +++ b/clients/gui-shell/dsh.c @@ -376,6 +376,19 @@ void dolcon(void) } } +void cb_shm_dolconf_activate(GtkWidget *uu1, gpointer uu2) +{ + int i; + + if((dcpid = fork()) == 0) { + for(i = 3; i < FD_SETSIZE; i++) + close(i); + execlp("dolconf", "dolconf", NULL); + perror("dolconf"); + exit(127); + } +} + void cb_shm_dolcon_activate(GtkWidget *uu1, gpointer uu2) { dolcon(); -- 2.11.0