projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d225b
)
skip comments and empty lines
author
Dana Jansens
<danakj@orodu.net>
Fri, 28 Mar 2003 01:28:50 +0000
(
01:28
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 28 Mar 2003 01:28:50 +0000
(
01:28
+0000)
openbox/plugin.c
patch
|
blob
|
history
diff --git
a/openbox/plugin.c
b/openbox/plugin.c
index c4a2705766f9252eea33da5e49878a61469d7194..ca86aca439a691f74d80459a7c8c71ec46d23c22 100644
(file)
--- a/
openbox/plugin.c
+++ b/
openbox/plugin.c
@@
-148,9
+148,13
@@
void plugin_loadall()
/* load the plugins in the rc file */
while (g_io_channel_read_line(io, &name, NULL, NULL, &err) ==
G_IO_STATUS_NORMAL) {
- g_strstrip(name);
- plugin_open(name);
- g_free(name);
+ int i = 0;
+ while (name[++i-1] == ' ' || name[i-1] == '\t');
+ if (name[i] != '\0' && name[i] != '#') {
+ g_strstrip(name);
+ plugin_open(name);
+ g_free(name);
+ }
}
g_io_channel_unref(io);
}