[nautilus-actions] Add nemo support
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Add nemo support
- Date: Wed, 15 Feb 2017 22:43:24 +0000 (UTC)
commit 01fc8496b0056f252ee754e028b3facf915c7a44
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed May 20 21:57:35 2015 +0200
Add nemo support
configure.ac | 5 ++++-
m4/na-file-manager.m4 | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 01ce49a..59c82dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,7 @@ NA_CHECK_MODULE([GIO_UNIX],[gio-unix-2.0])
NA_CHECK_MODULE([GTOP], [libgtop-2.0],[${gtop_required}])
NA_CHECK_MODULE([LIBXML], [libxml-2.0], [${xml_required}])
NA_CHECK_MODULE([UUID], [uuid])
-NA_CHECK_MODULE([SM], [sm >= 1.0])
+NA_CHECK_MODULE([SM], [sm], [1.0])
NA_CHECK_MODULE([ICE], [ice])
# target a file manager (nautilus, nemo, ...)
@@ -195,6 +195,9 @@ $as_echo "
if test "${enable_file_manager}" = "nautilus"; then
$as_echo " Nautilus extensions directory ${with_nautilus_extdir}"
fi
+if test "${enable_file_manager}" = "nemmo"; then
+ $as_echo " Nemo extensions directory ${with_nemo_extdir}"
+fi
$as_echo " GConf enabled ${enable_gconf}"
if test "${enable_gconf}" = "yes"; then
$as_echo " GConf schemas installation ${msg_schemas_install}"
diff --git a/m4/na-file-manager.m4 b/m4/na-file-manager.m4
index 8371eee..1d64285 100644
--- a/m4/na-file-manager.m4
+++ b/m4/na-file-manager.m4
@@ -26,6 +26,7 @@
# ... and many others (see AUTHORS)
# serial 1 let the user choose a target file-manager
+# serial 2 manage Nemo
dnl defaults to nautilus
@@ -44,6 +45,7 @@ AC_DEFUN([NA_TARGET_FILE_MANAGER],[
elif test "${enable_file_manager}" = "nemo"; then
AC_MSG_NOTICE([targeting Nemo file-manager])
+ AC_REQUIRE([_AC_NA_FILE_MANAGER_NEMO])dnl
fi
])
@@ -86,5 +88,37 @@ AC_DEFUN([_AC_NA_FILE_MANAGER_NAUTILUS],[
AC_CHECK_FUNCS([nautilus_menu_provider_get_toolbar_items])
])
+# target file manager: nemo
+# when working in a test environment, nemo extensions are typically
+# installed in a non-standard location; lets specify this location here
+# --with-nemo-extdir=<dir>
+
AC_DEFUN([_AC_NA_FILE_MANAGER_NEMO],[
+
+ AC_ARG_WITH(
+ [nemo-extdir],
+ AC_HELP_STRING(
+ [--with-nemo-extdir=DIR],
+ [nemo plugins extension directory @<:@auto@:>@]),
+ [with_nemo_extdir=$withval],
+ [with_nemo_extdir=""])
+
+ if test "${with_nemo_extdir}" = ""; then
+ if test "{PKG_CONFIG}" != ""; then
+ with_nemo_extdir=`${PKG_CONFIG} --variable=extensiondir libnemo-extension`
+ fi
+ fi
+ if test "${with_nemo_extdir}" = ""; then
+ AC_MSG_ERROR([Unable to determine nemo extension folder, please use --with-nemo-extdir
option])
+ else
+ AC_MSG_NOTICE([installing plugins in ${with_nemo_extdir}])
+ AC_SUBST([NEMO_EXTENSIONS_DIR],[${with_nemo_extdir}])
+ AC_DEFINE_UNQUOTED([NA_NEMO_EXTENSIONS_DIR],[${with_nemo_extdir}],[Nemo extensions directory])
+ fi
+
+ NA_CHECK_MODULE([NEMO_EXTENSION],[libnemo-extension],[${nemo_required}])
+
+ # Check for menu update function
+ AC_CHECK_LIB([nemo-extension],[nemo_menu_item_new])
+ AC_CHECK_FUNCS([nemo_menu_provider_emit_items_updated_signal])
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]