Re: Embedding the VTE Virtual Terminal
- From: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- To: Stevenix <steve gnulinux gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Embedding the VTE Virtual Terminal
- Date: Wed, 2 Dec 2009 17:01:09 +0100
On Thu, Nov 26, 2009 at 3:07 PM, Stevenix
<steve gnulinux gmail com> wrote:
Hi,
I'm writing a Gui+Terminal application, where VTE is embedded on window, and
the GUI Menu Items.
And i'm trying to call this action...
... calls to this action from the menu... (just fork a 'ls' command)
But i'm unable to get the 'ls' listing ...
void VimWindow (GtkWidget *widget, gpointer gdata)
{
GtkWidget *vte;
vte = vte_terminal_new();
[b]vte_terminal_fork_command(VTE_TERMINAL(vte), "ls", NULL,
NULL, ".", FALSE, FALSE, FALSE);[/b]
}
Try something like this (untested):
char [][] argv = {
"ls", NULL
};
vte_terminal_fork_command(VTE_TERMINAL(vte), "ls", argv, NULL, ".", FALSE, FALSE, FALSE);
If I recall well the first "ls" is actually the name you want the users to see when they run ps while argv[0] has the name of the program to execute.
--
Emmanuel Rodriguez
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]