My first litle hack =)
Brian Gomes Bascoy
gomesbascoy at gmail.com
Sun Apr 1 23:51:42 EDT 2007
Hi, my name is Brian, I make a litle hack for Openbox to execute
programs in the init (like .xsesion). I do this for two reasons, first I
don't know why I .xsesion don't work in my computer :P, second supposing
that xsesion works I don't want to execute the sames programs in all my WMs.
To execute for example xlogo you need to add this lines in
~/.config/openbox/rc.xml:
<init>
<execute>xlogo</execute>
</init>
Thanks to make Openbox (I love it =) and excuse my english (I'm from
Argentina ;)
This is the diff if anyone want to get this functionality:
--- config.c 2007-04-01 22:37:47.000000000 -0300
+++ config.c.old 2006-09-07 08:48:40.000000000 -0300
@@ -623,22 +623,6 @@
config_resist_layers_below = parse_bool(doc, n);
}
-static void parse_init(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
- gpointer d)
-{
- union ActionData *data;
- xmlNodePtr n;
- for (node = node->children; node; node = node->next)
- if(node->type == XML_ELEMENT_NODE)
- if ((n = parse_find_node("execute", node))) {
- gchar *s = parse_string(doc, n);
- g_print(">%s\n", s);
- data->execute.path = parse_expand_tilde(s);
- g_free(s);
- action_execute(data);
- }
-}
-
typedef struct
{
const gchar *key;
@@ -826,8 +810,6 @@
config_per_app_settings = NULL;
parse_register(i, "applications", parse_per_app_settings, NULL);
-
- parse_register(i, "init", parse_init, NULL);
}
void config_shutdown()
More information about the openbox
mailing list