Commit c421da90 authored by Debarshi Ray's avatar Debarshi Ray

Add the machinery to provide a classic-mode session

A new session is added only when --enable-extensions=classic-mode is
used.

https://bugzilla.gnome.org/show_bug.cgi?id=689285
parent 5a08081c
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
DIST_SUBDIRS = data extensions po
SUBDIRS = extensions po SUBDIRS = extensions po
if CLASSIC_MODE
SUBDIRS += data
endif
EXTRA_DIST = lib/convenience.js EXTRA_DIST = lib/convenience.js
DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all
......
...@@ -38,6 +38,8 @@ AC_ARG_ENABLE([extensions], ...@@ -38,6 +38,8 @@ AC_ARG_ENABLE([extensions],
[], [],
[enable_extensions=$DEFAULT_EXTENSIONS] [enable_extensions=$DEFAULT_EXTENSIONS]
) )
AM_CONDITIONAL([CLASSIC_MODE], [test x"$enable_extensions" = xclassic-mode])
if test x"$enable_extensions" = xall; then if test x"$enable_extensions" = xall; then
enable_extensions="$ALL_EXTENSIONS" enable_extensions="$ALL_EXTENSIONS"
fi fi
...@@ -71,6 +73,7 @@ AC_SUBST(ENABLED_EXTENSIONS, [$ENABLED_EXTENSIONS]) ...@@ -71,6 +73,7 @@ AC_SUBST(ENABLED_EXTENSIONS, [$ENABLED_EXTENSIONS])
dnl Please keep this sorted alphabetically dnl Please keep this sorted alphabetically
AC_CONFIG_FILES([ AC_CONFIG_FILES([
data/Makefile
extensions/alternate-tab/Makefile extensions/alternate-tab/Makefile
extensions/alternative-status-menu/Makefile extensions/alternative-status-menu/Makefile
extensions/apps-menu/Makefile extensions/apps-menu/Makefile
......
desktopdir = $(datadir)/applications
desktop_in_in_files = gnome-shell-classic.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
sessiondir = $(datadir)/gnome-session/sessions
session_in_in_files = gnome-classic.session.desktop.in.in
session_in_files = $(session_in_in_files:.session.desktop.in.in=.session.desktop.in)
session_DATA = $(session_in_files:.session.desktop.in=.session)
xsessiondir = $(datadir)/xsessions
xsession_in_files = gnome-classic.desktop.in
xsession_DATA = $(xsession_in_files:.desktop.in=.desktop)
%.desktop.in:%.desktop.in.in
$(AM_V_GEN) sed \
-e "s|\@bindir\@|$(bindir)|" \
-e "s|\@VERSION\@|$(VERSION)|" \
$< > $@
%.session.desktop.in: %.session.desktop.in.in
$(AM_V_GEN) sed \
-e "s|\@libexecdir\@|$(libexecdir)|" \
$< > $@
%.session: %.session.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
@INTLTOOL_DESKTOP_RULE@
EXTRA_DIST = \
$(desktop_in_in_files) \
$(session_in_in_files) \
$(xsession_in_files) \
$(NULL)
CLEANFILES = \
$(desktop_DATA) \
$(session_DATA) \
$(xsession_DATA) \
$(NULL)
[Desktop Entry]
_Name=GNOME Classic
_Comment=This session logs you into GNOME Classic
Exec=gnome-session --session gnome-classic
TryExec=gnome-session
Icon=
Type=Application
[GNOME Session]
_Name=GNOME Classic
RequiredComponents=gnome-shell-classic;gnome-settings-daemon;
IsRunnableHelper=@libexecdir@/gnome-session-check-accelerated
FallbackSession=gnome-fallback
[Desktop Entry]
Type=Application
_Name=GNOME Shell Classic
_Comment=Window management and application launching
Exec=@bindir@/gnome-shell --mode=classic
TryExec=@bindir@/gnome-shell
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-shell
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=@VERSION@
Categories=GNOME;GTK;Core;
OnlyShowIn=GNOME;
NoDisplay=true
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=panel;windowmanager;
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=false
data/gnome-classic.desktop.in
data/gnome-classic.session.desktop.in.in
data/gnome-shell-classic.desktop.in.in
extensions/alternate-tab/extension.js extensions/alternate-tab/extension.js
extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in extensions/alternate-tab/org.gnome.shell.extensions.alternate-tab.gschema.xml.in
extensions/alternate-tab/prefs.js extensions/alternate-tab/prefs.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment