From: Fredrik Tolf Date: Wed, 15 Aug 2007 22:18:55 +0000 (+0200) Subject: Add dolconf to dsh menu. X-Git-Tag: 1.0~55 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=31a01fddb038535690783feb3e76bcd35c1edb16 Add dolconf to dsh menu. --- 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();