Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implementation blankon-session & manokwari-applications.menu

  • Loading branch information...
commit ed0c78bec64ee0e17e8459c345831d6732f70d51 1 parent 6b7cdb8
Mahyuddin Idram Ahmad dotovr authored
5 Makefile.am
View
@@ -7,7 +7,10 @@ SUBDIRS = \
src \
system \
po \
- tests \
+ files/bin \
+ files/sessions \
+ files/xsessions \
+ files/menus \
$(NULL)
manokwaridocdir = ${prefix}/doc/manokwari
33 configure.ac
View
@@ -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
@@ -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 files/bin/Makefile.am
View
@@ -0,0 +1,9 @@
+sessiondir = $(bindir)
+
+session_DATA = \
+ gnome-session-blankon \
+ gnome-session-blankon-fallback \
+ $(NULL)
+
+CLEANFILES = \
+ $(sessiondir_DATA)
3  files/bin/gnome-session-blankon
View
@@ -0,0 +1,3 @@
+#! /bin/sh
+exec gnome-session --session blankon "$@"
+
3  files/bin/gnome-session-blankon-fallback
View
@@ -0,0 +1,3 @@
+#! /bin/sh
+exec gnome-session --session blankon2d "$@"
+
9 files/menus/Makefile.am
View
@@ -0,0 +1,9 @@
+prefix = /
+menusdir = $(sysconfdir)/xdg/menus
+
+menus_DATA = \
+ manokwari-applications.menu \
+ $(NULL)
+
+CLEANFILES = \
+ $(menusdir_DATA)
347 files/menus/manokwari-applications.menu
View
@@ -0,0 +1,347 @@
+<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
+ "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
+
+<Menu>
+
+ <Name>Applications</Name>
+ <Directory>X-GNOME-Menu-Applications.directory</Directory>
+
+ <!-- Scan legacy dirs first, as later items take priority -->
+ <LegacyDir>/etc/X11/applnk</LegacyDir>
+ <LegacyDir>/usr/share/gnome/apps</LegacyDir>
+
+ <!-- Read standard .directory and .desktop file locations -->
+ <DefaultAppDirs/>
+ <DefaultDirectoryDirs/>
+
+ <!-- Read in overrides and child menus from applications-merged/ -->
+ <DefaultMergeDirs/>
+
+ <!-- Accessories submenu -->
+ <Menu>
+ <Name>Accessories</Name>
+ <Directory>Utility.directory</Directory>
+ <Include>
+ <And>
+ <Category>Utility</Category>
+ <!-- Accessibility spec must have either the Utility or Settings
+ category, and we display an accessibility submenu already for
+ the ones that do not have Settings, so don't display accessibility
+ applications here -->
+ <Not><Category>Accessibility</Category></Not>
+ <Not><Category>System</Category></Not>
+ </And>
+ </Include>
+ </Menu> <!-- End Accessories -->
+
+ <!-- Accessibility submenu -->
+ <Menu>
+ <Name>Universal</Name>
+ <Directory>Utility-Accessibility.directory</Directory>
+ <Include>
+ <And>
+ <Category>Accessibility</Category>
+ <Not><Category>Settings</Category></Not>
+ </And>
+ </Include>
+ </Menu> <!-- End Accessibility -->
+
+ <!-- Development Tools -->
+ <Menu>
+ <Name>Development</Name>
+ <Directory>Development.directory</Directory>
+ <Include>
+ <And>
+ <Category>Development</Category>
+ </And>
+ <Filename>emacs.desktop</Filename>
+ </Include>
+ </Menu> <!-- End Development Tools -->
+
+ <!-- Education -->
+ <Menu>
+ <Name>Education</Name>
+ <Directory>Education.directory</Directory>
+ <Include>
+ <And>
+ <Category>Education</Category>
+ <Not><Category>Science</Category></Not>
+ </And>
+ </Include>
+ </Menu> <!-- End Education -->
+
+ <!-- Science -->
+ <Menu>
+ <Name>Science</Name>
+ <Directory>GnomeScience.directory</Directory>
+ <Include>
+ <And>
+ <Category>Education</Category>
+ <Category>Science</Category>
+ </And>
+ </Include>
+ </Menu> <!-- End Science -->
+
+ <!-- Games -->
+ <Menu>
+ <Name>Games</Name>
+ <Directory>Game.directory</Directory>
+ <Include>
+ <And>
+ <Category>Game</Category>
+ <Not><Category>ActionGame</Category></Not>
+ <Not><Category>AdventureGame</Category></Not>
+ <Not><Category>ArcadeGame</Category></Not>
+ <Not><Category>BoardGame</Category></Not>
+ <Not><Category>BlocksGame</Category></Not>
+ <Not><Category>CardGame</Category></Not>
+ <Not><Category>KidsGame</Category></Not>
+ <Not><Category>LogicGame</Category></Not>
+ <Not><Category>Simulation</Category></Not>
+ <Not><Category>SportsGame</Category></Not>
+ <Not><Category>StrategyGame</Category></Not>
+ </And>
+ </Include>
+ <DefaultLayout inline="true" inline_limit="6" inline_header="false">
+ <Merge type="menus"/>
+ <Merge type="files"/>
+ </DefaultLayout>
+ <Menu>
+ <Name>Action</Name>
+ <Directory>ActionGames.directory</Directory>
+ <Include>
+ <Category>ActionGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Adventure</Name>
+ <Directory>AdventureGames.directory</Directory>
+ <Include>
+ <Category>AdventureGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Arcade</Name>
+ <Directory>ArcadeGames.directory</Directory>
+ <Include>
+ <Category>ArcadeGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Board</Name>
+ <Directory>BoardGames.directory</Directory>
+ <Include>
+ <Category>BoardGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Blocks</Name>
+ <Directory>BlocksGames.directory</Directory>
+ <Include>
+ <Category>BlocksGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Cards</Name>
+ <Directory>CardGames.directory</Directory>
+ <Include>
+ <Category>CardGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Kids</Name>
+ <Directory>KidsGames.directory</Directory>
+ <Include>
+ <Category>KidsGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Logic</Name>
+ <Directory>LogicGames.directory</Directory>
+ <Include>
+ <Category>LogicGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Role Playing</Name>
+ <Directory>RolePlayingGames.directory</Directory>
+ <Include>
+ <Category>RolePlaying</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Simulation</Name>
+ <Directory>SimulationGames.directory</Directory>
+ <Include>
+ <Category>Simulation</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Sports</Name>
+ <Directory>SportsGames.directory</Directory>
+ <Include>
+ <Category>SportsGame</Category>
+ </Include>
+ </Menu>
+ <Menu>
+ <Name>Strategy</Name>
+ <Directory>StrategyGames.directory</Directory>
+ <Include>
+ <Category>StrategyGame</Category>
+ </Include>
+ </Menu>
+ </Menu> <!-- End Games -->
+
+ <!-- Graphics -->
+ <Menu>
+ <Name>Graphics</Name>
+ <Directory>Graphics.directory</Directory>
+ <Include>
+ <And>
+ <Category>Graphics</Category>
+ </And>
+ </Include>
+ </Menu> <!-- End Graphics -->
+
+ <!-- Internet -->
+ <Menu>
+ <Name>Internet</Name>
+ <Directory>Network.directory</Directory>
+ <Include>
+ <And>
+ <Category>Network</Category>
+ </And>
+ </Include>
+ </Menu> <!-- End Internet -->
+
+ <!-- Islamic Software -->
+ <Menu>
+ <Name>Islamic-Software</Name>
+ <Directory>Islamic-Software.directory</Directory>
+ <Include>
+ <And>
+ <Category>X-Islamic-Software</Category>
+ <Not><Category>X-Quran</Category></Not>
+ </And>
+ </Include>
+ <DefaultLayout inline="true" inline_limit="2" inline_header="false">
+ <Merge type="menus"/>
+ <Merge type="files"/>
+ </DefaultLayout>
+ <Menu>
+ <Name>Quran</Name>
+ <Directory>Quran.directory</Directory>
+ <Include>
+ <Category>X-Quran</Category>
+ </Include>
+ </Menu>
+ </Menu> <!-- End Islamic Software -->
+
+ <!-- Multimedia -->
+ <Menu>
+ <Name>Multimedia</Name>
+ <Directory>AudioVideo.directory</Directory>
+ <Include>
+ <And>
+ <Category>AudioVideo</Category>
+ </And>
+ </Include>
+ </Menu> <!-- End Multimedia -->
+
+ <!-- Office -->
+ <Menu>
+ <Name>Office</Name>
+ <Directory>Office.directory</Directory>
+ <Include>
+ <And>
+ <Category>Office</Category>
+ </And>
+ </Include>
+ </Menu> <!-- End Office -->
+
+ <!-- System Tools-->
+ <Menu>
+ <Name>System</Name>
+ <Directory>System-Tools.directory</Directory>
+ <Include>
+ <And>
+ <Category>System</Category>
+ <Not><Category>Settings</Category></Not>
+ <Not><Category>Game</Category></Not>
+ </And>
+ </Include>
+ </Menu> <!-- End System Tools -->
+
+ <Menu>
+ <Name>Preferences</Name>
+ <Directory>Settings.directory</Directory>
+ <Include>
+ <And>
+ <Category>Settings</Category>
+ <Not>
+ <Or>
+ <Category>System</Category>
+ <Category>X-GNOME-Settings-Panel</Category>
+ </Or>
+ </Not>
+ </And>
+ </Include>
+ </Menu>
+
+ <Menu>
+ <Name>Administration</Name>
+ <Directory>Settings-System.directory</Directory>
+ <Include>
+ <And>
+ <Category>Settings</Category>
+ <Category>System</Category>
+ <Not>
+ <Category>X-GNOME-Settings-Panel</Category>
+ </Not>
+ </And>
+ </Include>
+ </Menu>
+
+ <!-- Other -->
+ <Menu>
+ <Name>Other</Name>
+ <Directory>X-GNOME-Other.directory</Directory>
+ <OnlyUnallocated/>
+ <Include>
+ <And>
+ <Not><Category>Core</Category></Not>
+ <Not><Category>Screensaver</Category></Not>
+ <Not><Category>X-GNOME-Settings-Panel</Category></Not>
+ </And>
+ </Include>
+ </Menu> <!-- End Other -->
+
+ <Layout>
+ <Merge type="menus"/>
+ <Menuname>Accessories</Menuname>
+ <Menuname>Debian</Menuname>
+ <Menuname>Education</Menuname>
+ <Menuname>Games</Menuname>
+ <Menuname>Graphics</Menuname>
+ <Menuname>Internet</Menuname>
+ <Menuname>Islamic-Software</Menuname>
+ <Menuname>Office</Menuname>
+ <Menuname>Other</Menuname>
+ <Menuname>Development</Menuname>
+ <Menuname>Multimedia</Menuname>
+ <Menuname>Science</Menuname>
+ <Menuname>System</Menuname>
+ <Menuname>Preferences</Menuname>
+ <Menuname>Administration</Menuname>
+ <Menuname>Universal</Menuname>
+ <Merge type="files"/>
+ </Layout>
+
+ <!-- The Debian menu -->
+ <Menu>
+ <Name>Debian</Name>
+ <MergeFile>debian-menu.menu</MergeFile>
+ <Directory>Debian.directory</Directory>
+ </Menu>
+
+</Menu> <!-- End Applications -->
9 files/sessions/Makefile.am
View
@@ -0,0 +1,9 @@
+sessionsdir = $(datadir)/gnome-session/sessions
+
+sessions_DATA = \
+ blankon.session \
+ blankon-fallback.session \
+ $(NULL)
+
+CLEANFILES = \
+ $(sessionsdir_DATA)
4 files/sessions/blankon-fallback.session
View
@@ -0,0 +1,4 @@
+[GNOME Session]
+Name=BlankOn fallback (Safe Mode)
+RequiredComponents=manokwari;gnome-wm;
+DesktopName=GNOME
7 files/sessions/blankon.session
View
@@ -0,0 +1,7 @@
+[GNOME Session]
+Name=BlankOn
+RequiredComponents=gnome-wm;manokwari;
+IsRunnableHelper=/usr/lib/gnome-session/gnome-session-check-accelerated
+FallbackSession=blankon-fallback
+DesktopName=GNOME
+
9 files/xsessions/Makefile.am
View
@@ -0,0 +1,9 @@
+xsessionsdir = $(datadir)/xsessions
+
+xsessions_DATA = \
+ blankon.desktop \
+ blankon-fallback.desktop \
+ $(NULL)
+
+CLEANFILES = \
+ $(xsessionsdir_DATA)
8 files/xsessions/blankon-fallback.desktop
View
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=BlankOn Fallback
+Comment=This session logs you into GNOME with the traditional panel without any
+graphical effect.
+Exec=blankon-session-fallback
+TryExec=blankon-session-fallback
+Icon=
+Type=Application
8 files/xsessions/blankon.desktop
View
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=BlankOn
+Comment=This session logs you into BlankOn
+Exec=gnome-session-blankon
+TryExec=/usr/bin/manokwari
+Icon=
+Type=Application
+
Please sign in to comment.
Something went wrong with that request. Please try again.