mrosset / vte

simple go language bindings to vte
3 stars 3 forks source link

Hope to use vte_terminal_fork_command. #1

Open mattn opened 12 years ago

mattn commented 12 years ago

I tried to use this. But on my environment, vte_terminal_fork_command_full(). :-( Of couse, this is an issue of my environment that vte is too old.

mrosset commented 12 years ago

I'm using vte 0.28.2 what version are you using?

also vte_terminal_fork_command is very limited now, I hope to add passing args and cmd. right now I've hard coded bash .

mattn commented 12 years ago

0.23.5

It seems that vte_terminal_fork_command can pass command and argv.

pid_t vte_terminal_fork_command(VteTerminal *terminal,
                const char *command, char **argv,
                char **envv, const char *directory,
                gboolean lastlog,
                gboolean utmp,
                gboolean wtmp);
mrosset commented 12 years ago

0.23.5 is pretty old, I cant even get it to build on archlinux. any chance you could use 0.28.2? Also added passing a string slice to Fork but its not complete it only works if you use []string{"bash","--login"} []string{"bash"} wont work. I used your []string to const\ functions from go-gtk I hope that's ok?