Skip to content

Commit 636456c

Browse files
committed
First revision
0 parents  commit 636456c

File tree

94 files changed

+10717
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+10717
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.o
2+
labwc-menu-generator
3+
t/test-results/*
4+
t/trash*

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Define ASAN=1 to enable AddressSanitizer
2+
3+
.POSIX:
4+
5+
RM ?= rm -f
6+
CFLAGS += -g -Wall -Os -std=c99 -Wextra
7+
MAKEFLAGS += --no-print-directory
8+
CFLAGS += `pkg-config --cflags glib-2.0`
9+
LIBS += `pkg-config --libs glib-2.0`
10+
LDFLAGS += $(LIBS)
11+
12+
ifdef ASAN
13+
ASAN_FLAGS = -O0 -fsanitize=address -fno-common -fno-omit-frame-pointer -rdynamic
14+
CFLAGS += $(ASAN_FLAGS)
15+
LDFLAGS += $(ASAN_FLAGS) -fuse-ld=gold
16+
endif
17+
18+
PROG = labwc-menu-generator
19+
20+
all: $(PROG)
21+
22+
$(PROG): main.o desktop.o
23+
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
24+
25+
%.o : src/%.c
26+
27+
clean:
28+
@$(RM) $(PROG) *.o
29+
@$(MAKE) -C t/ clean
30+
31+
check: $(PROG)
32+
@$(MAKE) -C t/ prove
33+
34+
.PHONY: all clean check

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# labwc-menu-generator
2+
3+
Features:
4+
5+
- Parse desktop entry .desktop files in accordance with [Desktop Entry Specification]
6+
- Output an openbox menu file using a built-in schema for directories
7+
- Ignore .menu and .directory files as specified in [Menu Specification]
8+
- Support localized values for .desktop file keys such as `Name[sr_YU]`
9+
10+
[Desktop Entry Specification]: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html
11+
[Menu Specification]: https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html
12+

0 commit comments

Comments
 (0)