mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
src/rcxml.c: parse <keybind>
This commit is contained in:
parent
f6578248c0
commit
158f42d1e8
11 changed files with 108 additions and 50 deletions
|
|
@ -1,3 +1,4 @@
|
|||
labwc_sources += files(
|
||||
'buf.c',
|
||||
'spawn.c',
|
||||
)
|
||||
|
|
|
|||
22
src/common/spawn.c
Normal file
22
src/common/spawn.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include <glib.h>
|
||||
|
||||
void spawn_async_no_shell(char const *command)
|
||||
{
|
||||
GError *err = NULL;
|
||||
gchar **argv = NULL;
|
||||
|
||||
g_shell_parse_argv((gchar *)command, NULL, &argv, &err);
|
||||
if (err) {
|
||||
g_message("%s", err->message);
|
||||
g_error_free(err);
|
||||
return;
|
||||
}
|
||||
g_spawn_async(NULL, argv, NULL,
|
||||
G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
|
||||
NULL, NULL, NULL, &err);
|
||||
if (err) {
|
||||
g_message("%s", err->message);
|
||||
g_error_free(err);
|
||||
}
|
||||
g_strfreev(argv);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue