From 1f99e84e70b1e8a3a6ef0620aeea8a6b20975608 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 7 Sep 2010 14:02:31 +0200 Subject: [PATCH] generate terminals menu (#622426) --- menu.xml | 44 +++++--------------------------------------- openbox.spec | 5 ++++- terminals.menu | 16 ++++++++++++++++ 3 files changed, 25 insertions(+), 40 deletions(-) create mode 100644 terminals.menu diff --git a/menu.xml b/menu.xml index c8966e7..2461b31 100644 --- a/menu.xml +++ b/menu.xml @@ -2,44 +2,10 @@ - - - - - - - - urxvt - - - - - gnome-terminal - - yes - - - - - - xfce4-terminal - - yes - - - - - - konsole - - yes - - - - - xterm - - + + + + @@ -47,7 +13,7 @@ - + diff --git a/openbox.spec b/openbox.spec index 3dc13b6..7332ce5 100644 --- a/openbox.spec +++ b/openbox.spec @@ -11,6 +11,7 @@ Source1: http://icculus.org/openbox/tools/setlayout.c Source2: xdg-menu Source3: menu.xml Source4: openbox.desktop +Source5: terminals.menu Patch0: openbox-3.4.9-autostartdir.patch Patch1: openbox-3.4.11-Xau.patch @@ -92,13 +93,15 @@ make install DESTDIR=%{buildroot} install setlayout %{buildroot}%{_bindir} install -p %{SOURCE2} %{buildroot}%{_datadir}/%{name}/xdg-menu -sed 's|_XDGMENU_|%{_datadir}/%{name}/xdg-menu|g' < %{SOURCE3} \ +sed 's|_DATADIR_|%{_datadir}/%{name}|g' < %{SOURCE3} \ > %{buildroot}%{_sysconfdir}/xdg/%{name}/menu.xml desktop-file-install --vendor="" \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE4} +install -m644 -p %{SOURCE5} %{buildroot}%{_datadir}/%{name}/terminals.menu + %find_lang %{name} rm -f %{buildroot}%{_libdir}/*.la rm -rf %{buildroot}%{_datadir}/doc/%{name} diff --git a/terminals.menu b/terminals.menu new file mode 100644 index 0000000..450543e --- /dev/null +++ b/terminals.menu @@ -0,0 +1,16 @@ + + + + Terminals + + + + + + + + + TerminalEmulator + +