Skip to content

Commit

Permalink
Merge pull request #21 from dotovr/master
Browse files Browse the repository at this point in the history
Implementation blankon-session & manokwari-applications.menu
  • Loading branch information
Mohammad Anwari committed Feb 5, 2013
2 parents 6b7cdb8 + ba2ffee commit 888a53b
Show file tree
Hide file tree
Showing 14 changed files with 452 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Makefile.am
Expand Up @@ -7,7 +7,10 @@ SUBDIRS = \
src \
system \
po \
tests \
files/bin \
files/sessions \
files/xsessions \
files/menus \
$(NULL)

manokwaridocdir = ${prefix}/doc/manokwari
Expand Down
33 changes: 31 additions & 2 deletions configure.ac
Expand Up @@ -20,6 +20,32 @@ AC_DEFINE(SYSTEM_PATH, "/usr/lib/manokwari/system", [Location of the JS scripts]
AC_SUBST(SYSTEM_PATH)
fi

AC_ARG_ENABLE([devel], AC_HELP_STRING([--enable-devel],[Enable development mode with sessions dir in current directory]), USE_DEVEL="$enableval", USE_DEVEL="no")
if test $USE_DEVEL = yes ; then
AC_DEFINE_UNQUOTED(SESSIONS_PATH, "$PWD/files/sessions", [Location of the Sessions scripts])
AC_SUBST(SESSIONS_PATH)
else
AC_DEFINE(SESSIONS_PATH, "/usr/share/gnome-session/sessions", [Location of the Sessions scripts])
AC_SUBST(SESSIONS_PATH)
fi

AC_ARG_ENABLE([devel], AC_HELP_STRING([--enable-devel],[Enable development mode with xsessions dir in current directory]), USE_DEVEL="$enableval", USE_DEVEL="no")
if test $USE_DEVEL = yes ; then
AC_DEFINE_UNQUOTED(XSESSIONS_PATH, "$PWD/files/xsessions", [Location of the Xsessions scripts])
AC_SUBST(XSESSIONS_PATH)
else
AC_DEFINE(XSESSIONS_PATH, "/usr/share/xsessions", [Location of the Xsessions scripts])
AC_SUBST(XSESSIONS_PATH)
fi

AC_ARG_ENABLE([devel], AC_HELP_STRING([--enable-devel],[Enable development mode with bin dir in current directory]), USE_DEVEL="$enableval", USE_DEVEL="no")
if test $USE_DEVEL = yes ; then
AC_DEFINE_UNQUOTED(BIN_PATH, "$PWD/files/bin", [Location of the Session scripts])
AC_SUBST(BIN_PATH)
else
AC_DEFINE(BIN_PATH, "/usr/bin", [Location of the Session scripts])
AC_SUBST(BIN_PATH)
fi

AH_TEMPLATE([GETTEXT_PACKAGE], [Package name for gettext])
GETTEXT_PACKAGE=manokwari
Expand Down Expand Up @@ -62,7 +88,10 @@ AC_CONFIG_FILES([Makefile
data/manokwari.desktop
src/Makefile
system/Makefile
tests/Makefile
po/Makefile.in])
po/Makefile.in
files/bin/Makefile
files/sessions/Makefile
files/xsessions/Makefile
files/menus/Makefile])

AC_OUTPUT
9 changes: 9 additions & 0 deletions files/bin/Makefile.am
@@ -0,0 +1,9 @@
sessiondir = $(bindir)

session_DATA = \
gnome-session-blankon \
gnome-session-blankon-fallback \
$(NULL)

CLEANFILES = \
$(sessiondir_DATA)
3 changes: 3 additions & 0 deletions files/bin/gnome-session-blankon
@@ -0,0 +1,3 @@
#! /bin/sh
exec gnome-session --session blankon "$@"

3 changes: 3 additions & 0 deletions files/bin/gnome-session-blankon-fallback
@@ -0,0 +1,3 @@
#! /bin/sh
exec gnome-session --session blankon-fallback "$@"

9 changes: 9 additions & 0 deletions files/menus/Makefile.am
@@ -0,0 +1,9 @@
prefix = /
menusdir = $(sysconfdir)/xdg/menus

menus_DATA = \
manokwari-applications.menu \
$(NULL)

CLEANFILES = \
$(menusdir_DATA)

0 comments on commit 888a53b

Please sign in to comment.