Commit d4a8d6e4 authored by Carlos Garnacho's avatar Carlos Garnacho

Delete tracker-preferences

This is a mix of store and miner features which can't be assumed to go
together. It is better to leave configuration UI up to the environment,
in the GNOME case this is gnome-control-center search panel.

For settings that fall in the cracks, or for environments that don't
integrate Tracker search in their configuration UI, there's the rather
capable dconf-editor which will provide all toggles, and will explain
them better than any UI we may have.

In the future the CLI tools might gain some configuration subcommand,
but it will not be a graphical UI.
parent 3c3fe197
......@@ -415,16 +415,6 @@ PKG_CHECK_MODULES(TRACKER_NEEDLE, [$TRACKER_NEEDLE_REQUIRED],
[have_tracker_needle=yes],
[have_tracker_needle=no])
# Check requirements for tracker-preferences
TRACKER_PREFERENCES_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
gio-unix-2.0 >= $GLIB_REQUIRED
gmodule-2.0 >= $GLIB_REQUIRED
gtk+-3.0 >= $GTK_REQUIRED"
PKG_CHECK_MODULES(TRACKER_PREFERENCES, [$TRACKER_PREFERENCES_REQUIRED],
[have_tracker_preferences=yes],
[have_tracker_preferences=no])
# Check we have Vala valac command we need
VALA_MIN_VERSION=0.18.0
AM_PROG_VALAC([$VALA_MIN_VERSION])
......@@ -518,7 +508,6 @@ if test "x$enable_minimal" = "xyes"; then
enable_miner_apps=no
enable_miner_rss=no
enable_tracker_needle=no
enable_tracker_preferences=no
fi
####################################################################
......@@ -1270,34 +1259,6 @@ fi
AM_CONDITIONAL(HAVE_TRACKER_NEEDLE, test "$have_tracker_needle" = "yes")
##################################################################
# Check for tracker-preferences
##################################################################
AC_ARG_ENABLE([tracker-preferences],
AS_HELP_STRING([--enable-tracker-preferences],
[enable GTK+ UI to configure Tracker [[default=auto]]]),
[enable_tracker_preferences=$enableval],
[enable_tracker_preferences=auto])
# If we don't have miner-fs enabled, the preferences are pointless
# So we override in this case.
if test "x$enable_tracker_miner_fs" = "xyes" ; then
enable_tracker_miner_fs="no"
fi
if test "x$enable_tracker_preferences" = "xyes" ; then
if test "x$have_tracker_preferences" != "xyes"; then
AC_MSG_ERROR([Could not find tracker-preferences dependencies ($TRACKER_PREFERENCES_REQUIRED).])
fi
else
if test "x$enable_tracker_preferences" = "xno"; then
have_tracker_preferences="no (disabled)"
fi
fi
AM_CONDITIONAL(HAVE_TRACKER_PREFERENCES, test "$have_tracker_preferences" = "yes")
##################################################################
# Check for tracker-resdump
##################################################################
......@@ -2263,7 +2224,6 @@ AC_CONFIG_FILES([
src/tracker-store/Makefile
src/tracker/Makefile
src/tracker-extract/Makefile
src/tracker-preferences/Makefile
src/tracker-needle/Makefile
src/tracker-needle/icons/Makefile
src/tracker-needle/icons/16x16/Makefile
......@@ -2434,7 +2394,6 @@ fi
echo "
Applications:
Build tracker-preferences: $have_tracker_preferences
Build tracker-needle: $have_tracker_needle
Frameworks / Options:
......
tp = tracker-preferences.1
tn = tracker-needle.1
tmrss = tracker-miner-rss.1
......@@ -20,10 +19,6 @@ common = \
# Require only common and enabled manpages
man_MANS = $(common)
if HAVE_TRACKER_PREFERENCES
man_MANS += $(tp)
endif
if HAVE_TRACKER_NEEDLE
man_MANS += $(tn)
endif
......
......@@ -39,9 +39,6 @@ src/tracker-needle/tracker-stats.vala
src/tracker-needle/tracker-tags-view.vala
src/tracker-needle/tracker-utils.vala
src/tracker-needle/tracker-view.vala
src/tracker-preferences/tracker-preferences.desktop.in.in
[type: gettext/glade]src/tracker-preferences/tracker-preferences.ui
src/tracker-preferences/tracker-preferences.vala
src/tracker-store/tracker-main.vala
src/tracker-store/tracker-store.desktop.in.in
src/tracker-store/org.freedesktop.Tracker.Store.gschema.xml.in
......
......@@ -28,10 +28,6 @@ if HAVE_TRACKER_WRITEBACK
SUBDIRS += tracker-writeback
endif
if HAVE_TRACKER_PREFERENCES
SUBDIRS += tracker-preferences
endif
if HAVE_TRACKER_NEEDLE
SUBDIRS += tracker-needle
endif
......
......@@ -44,7 +44,4 @@ subdir('tracker-store')
# Example search application
subdir('tracker-needle')
# Example configuration application
subdir('tracker-preferences')
meson.add_install_script('create-miner-symlinks.sh', dbus_services_dir, tracker_miner_services_dir)
tracker-preferences
*.desktop.in
@INTLTOOL_DESKTOP_RULE@
bin_PROGRAMS = tracker-preferences
desktopdir = $(datadir)/applications
desktop_DATA = tracker-preferences.desktop
appdatadir = $(datadir)/appdata
appdata_DATA = tracker-preferences.appdata.xml
pkgdata_DATA = tracker-preferences.ui
AM_VALAFLAGS = \
--pkg gtk+-3.0 --pkg gmodule-2.0 --pkg posix \
$(BUILD_VALAFLAGS) \
config.vapi \
tracker-config.vapi
AM_CPPFLAGS = \
$(BUILD_VALACFLAGS) \
-I$(top_srcdir)/src \
-I$(top_builddir)/src \
-DTRACKER_UI_DIR=\"$(datadir)/tracker/\" \
-DLOCALEDIR=\""$(localedir)"\" \
$(TRACKER_PREFERENCES_CFLAGS) \
-include config.h
LDADD = \
$(top_builddir)/src/libtracker-common/libtracker-common.la \
$(BUILD_LIBS) \
$(TRACKER_PREFERENCES_LIBS)
tracker_preferences_SOURCES = \
tracker-preferences.vala \
$(top_srcdir)/src/miners/fs/tracker-config.c
EXTRA_DIST = \
$(desktop_DATA:.desktop=.desktop.in.in) \
$(pkgdata_DATA) \
$(appdata_DATA) \
config.vapi \
tracker-config.vapi \
meson.build
CLEANFILES = \
$(desktop_DATA) \
$(desktop_DATA:.desktop=.desktop.in)
%.desktop.in: %.desktop.in.in
@sed -e "s|@VERSION[@]|${VERSION}|" $< > $@
// config.vapi
//
// Copyright (C) 2011 Martyn Russell <martyn@lanedo.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
// 02110-1301, USA.
//
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
namespace Config
{
public const string GETTEXT_PACKAGE;
public const string PACKAGE_NAME;
public const string PACKAGE_VERSION;
public const string APP_PATH;
public const string LOCALEDIR;
}
executable(
'tracker-preferences',
'config.vapi',
'tracker-preferences.vala',
'../miners/fs/tracker-config.c',
dependencies: [tracker_common_dep, tracker_sparql_dep, gmodule, gtk3],
c_args: tracker_c_args + [
'-D_XOPEN_SOURCE',
'-D_XOPEN_SOURCE_EXTENDED',
'-include', 'config.h'
],
vala_args: [
'--pkg', 'posix'
],
install: true,
install_rpath: tracker_internal_libs_dir
)
desktop_file_untranslated = configure_file(
input: 'tracker-preferences.desktop.in.in',
output: 'tracker-preferences.desktop.in',
configuration: conf)
desktop_file = custom_target('tracker-preferences-desktop-file',
input: desktop_file_untranslated,
output: 'tracker-preferences.desktop',
command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 'po'), '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'applications'))
install_data(
'tracker-preferences.appdata.xml',
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'appdata'))
install_data(
'tracker-preferences.ui',
install_dir: join_paths(get_option('prefix'), get_option('datadir')))
/*
* Copyright (C) 2008-2009, Nokia
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* Author: Philip Van Hoof <philip@codeminded.be>
*/
namespace Tracker {
[CCode (cheader_filename = "miners/fs/tracker-config.h")]
public class Config : GLib.Object {
public Config ();
public int verbosity { get; set; }
public int initial_sleep { get; set; }
public bool enable_monitors { get; set; }
public int throttle { get; set; }
public bool enable_thumbnails { get; set; }
public bool index_on_battery { get; set; }
public bool index_on_battery_first_time { get; set; }
public bool index_removable_devices { get; set; }
public bool index_optical_discs { get; set; }
public bool index_mounted_directories { get; set; }
public int low_disk_space_limit { get; set; }
public int removable_days_threshold { get; set; }
public GLib.SList<string> index_recursive_directories { get; set; }
public GLib.SList<string> index_recursive_directories_unfiltered { get; }
public GLib.SList<string> index_single_directories { get; set; }
public GLib.SList<string> index_single_directories_unfiltered { get; }
public GLib.SList<string> ignored_directories { get; set; }
public GLib.SList<string> ignored_directories_with_content { get; set; }
public GLib.SList<string> ignored_files { get; set; }
public GLib.SList<string> ignored_directory_patterns { get; }
public GLib.SList<string> ignored_file_patterns { get ; }
public bool save ();
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Martyn Russell <martyn@lanedo.com> -->
<component type="desktop">
<id>tracker-preferences.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Search and Indexing</name>
<summary>Configure file indexing with Tracker</summary>
<description>
<p>The Desktop Search application (usually separately installed)
finds content which is indexed only. Using this application, you can
quickly configure what data on your system you want indexed or not
indexed. Not only that, you get to control how it is indexed to
ensure indexing does not impede daily use of your computer.</p>
<p>Some of the preferences you can configure using this application
include:</p>
<ul>
<li>What locations you index</li>
<li>When you index (e.g. not on laptop battery)</li>
<li>How you index (e.g. aggressively or in the background)</li>
<li>Black listing files/directories based on globbing pattern matching</li>
<li>Reset the database and reindex your content</li>
</ul>
</description>
<screenshots>
<screenshot type="default" width="642" height="652">
<image>https://wiki.gnome.org/Projects/Tracker?action=AttachFile&amp;do=get&amp;target=tracker-preferences.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://wiki.gnome.org/Projects/Tracker</url>
<update_contact>tracker-list@gnome.org</update_contact>
<project_group>GNOME</project_group>
<translation type="gettext">tracker</translation>
</component>
[Desktop Entry]
_Name=Search and Indexing
_Comment=Configure file indexing with Tracker
Icon=tracker
Exec=tracker-preferences
Terminal=false
Type=Application
Categories=Settings;X-GNOME-PersonalSettings;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=tracker
X-GNOME-Bugzilla-Component=Tracker Preferences
X-GNOME-Bugzilla-Version=@VERSION@
This diff is collapsed.
This diff is collapsed.
/*
* Copyright (C) 2008-2009, Nokia
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
namespace Tracker {
[CCode (cheader_filename = "tracker-status-icon/tracker-icon-config.h")]
public class IconConfig : GLib.Object {
public IconConfig.with_domain (string domain);
public int visibility { get; set; }
public bool save ();
}
}
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