Commit 34ebc959 authored by minus's avatar minus

Add animebits

parent 5c910388
......@@ -178,6 +178,30 @@ int main(int argc, char *argv[]) {
button_callback_add(BOTTOM7, button_fav, &fc);
button_callback_add(TOP7, button_qfav, &fc);
gchar *args2[] = {"stewdio-textcmd", "", "mns", NULL};
int child_stdout2, child_stdin2;
g_autoptr(GError) error2 = NULL;
g_spawn_async_with_pipes (NULL, args2, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &child_stdin2, &child_stdout2, NULL, &error2);
if (error2 != NULL)
g_error ("Spawning child failed: %s", error2->message);
return -1;
struct fav_config fc2 = {
.sp = &sp,
.button = BOTTOM8,
.username = "mns",
.stdin = child_stdin2,
GIOChannel *ch2 = g_io_channel_unix_new(child_stdout2);
guint evsrcid2 = g_io_add_watch(ch2, G_IO_IN, &on_fav_info, &fc2);
button_callback_add(BOTTOM8, button_fav, &fc2);
button_callback_add(TOP8, button_qfav, &fc2);
GMainLoop *main_loop = g_main_loop_new(NULL, FALSE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment