Psensor NEWS
============
+v1.1.3
+
+* Added tooltip explaining why a setting is not available.
+* Removed support of old AppIndicator library < 3.0.
+
v1.1.2
------
<h1>Psensor NEWS</h1>\r
</div>\r
<div id="content">\r
+<div id="preamble">\r
+<div class="sectionbody">\r
+<div class="paragraph"><p>v1.1.3</p></div>\r
+<div class="ulist"><ul>\r
+<li>\r
+<p>\r
+Added tooltip explaining why a setting is not available.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Removed support of old AppIndicator library < 3.0.\r
+</p>\r
+</li>\r
+</ul></div>\r
+</div>\r
+</div>\r
<div class="sect1">\r
<h2 id="_v1_1_2">v1.1.2</h2>\r
<div class="sectionbody">\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2014-09-20 08:53:43 CEST\r
+Last updated 2014-09-23 10:59:34 CEST\r
</div>\r
</div>\r
</body>\r
faq)
* cppcheck (optional, static source checker)
* library libnotify (optional)
- * library libappindicator (optional)
+ * library libappindicator >= 3.0 (optional)
* library libXNVCtrl (optional)
* library json-c >= 0.11.99 and curl (optional, required for remote monitoring)
* library unity (>=v3.4.2, optional)
</li>\r
<li>\r
<p>\r
-the temperature of the Hard Disk Drives (using hddtemp or libatasmart).\r
+the temperature of ATI GPUs (using ATI ADL SDK).\r
</p>\r
</li>\r
<li>\r
<p>\r
-the rotation speed of the fans (using lm-sensors).\r
+the temperature of the Hard Disk Drives (using hddtemp, libatasmart\r
+ or udisks2).\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+the rotation speed of the fans.\r
</p>\r
</li>\r
<li>\r
</li>\r
<li>\r
<p>\r
-the cpu load.\r
+the CPU load.\r
</p>\r
</li>\r
</ul></div>\r
</li>\r
<li>\r
<p>\r
-library libappindicator (optional)\r
+library libappindicator >= 3.0 (optional)\r
</p>\r
</li>\r
<li>\r
library atasmart (optional, for disk monitoring)\r
</p>\r
</li>\r
+<li>\r
+<p>\r
+library udisk2 (optional, for disk monitoring)\r
+</p>\r
+</li>\r
</ul></div>\r
<div class="paragraph"><p>The specific requirements for <code>psensor-server</code>:</p></div>\r
<div class="ulist"><ul>\r
</li>\r
<li>\r
<p>\r
-To monitor HDDs, the <code>hddtemp</code> daemon must be installed and running.\r
-</p>\r
-</li>\r
-<li>\r
-<p>\r
Run: <code>psensor</code>\r
</p>\r
</li>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2014-08-23 13:50:12 CEST\r
+Last updated 2014-09-23 11:04:49 CEST\r
</div>\r
</div>\r
</body>\r
/* Define to 1 if you have the <adl_defines.h> header file. */
#undef HAVE_ADL_DEFINES_H
-/* Use AppIndicator > 0.2.9 */
+/* Use AppIndicator3-0.1 */
#undef HAVE_APPINDICATOR
-/* Use AppIndicator 0.2.9 */
-#undef HAVE_APPINDICATOR_029
-
/* Use libatasmart */
#undef HAVE_ATASMART
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for psensor 1.1.2.
+# Generated by GNU Autoconf 2.69 for psensor 1.1.0.x.
#
# Report bugs to <jeanfi@gmail.com>.
#
# Identity of this package.
PACKAGE_NAME='psensor'
PACKAGE_TARNAME='psensor'
-PACKAGE_VERSION='1.1.2'
-PACKAGE_STRING='psensor 1.1.2'
+PACKAGE_VERSION='1.1.0.x'
+PACKAGE_STRING='psensor 1.1.0.x'
PACKAGE_BUGREPORT='jeanfi@gmail.com'
PACKAGE_URL='http://wpitchoune.net/psensor'
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures psensor 1.1.2 to adapt to many kinds of systems.
+\`configure' configures psensor 1.1.0.x to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of psensor 1.1.2:";;
+ short | recursive ) echo "Configuration of psensor 1.1.0.x:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-psensor configure 1.1.2
+psensor configure 1.1.0.x
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by psensor $as_me 1.1.2, which was
+It was created by psensor $as_me 1.1.0.x, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='psensor'
- VERSION='1.1.2'
+ VERSION='1.1.0.x'
cat >>confdefs.h <<_ACEOF
# Checks AppIndicator
APPINDICATOR_LIBS=
-
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
$as_echo_n "checking for APPINDICATOR... " >&6; }
$as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
fi
-
-if test "$APPINDICATOR_LIBS" == ""; then
-
-pkg_failed=no
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
-$as_echo_n "checking for APPINDICATOR... " >&6; }
-
-if test -n "$APPINDICATOR_CFLAGS"; then
- pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
- ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-if test -n "$APPINDICATOR_LIBS"; then
- pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
- ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-
-
-
-if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
- else
- APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$APPINDICATOR_PKG_ERRORS" >&5
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
-$as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
-elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
-$as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
-else
- APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
- APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
-
-
-$as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
-
-
-fi
-fi
-
-if test "$APPINDICATOR_LIBS" == ""; then
-
-pkg_failed=no
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
-$as_echo_n "checking for APPINDICATOR... " >&6; }
-
-if test -n "$APPINDICATOR_CFLAGS"; then
- pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
- ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-if test -n "$APPINDICATOR_LIBS"; then
- pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
- ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-
-
-
-if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
- else
- APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$APPINDICATOR_PKG_ERRORS" >&5
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
-$as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
-elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
-$as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
-else
- APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
- APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
-
-fi
-fi
if test -n "$APPINDICATOR_LIBS"; then
APPINDICATOR_TRUE=
APPINDICATOR_FALSE='#'
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by psensor $as_me 1.1.2, which was
+This file was extended by psensor $as_me 1.1.0.x, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-psensor config.status 1.1.2
+psensor config.status 1.1.0.x
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
# Checks AppIndicator
APPINDICATOR_LIBS=
-
PKG_CHECK_MODULES(APPINDICATOR, appindicator3-0.1,
[AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator3-0.1])],
[AC_MSG_WARN(AppIndicator 3-0.1 not present")])
-
-if test "$APPINDICATOR_LIBS" == ""; then
- PKG_CHECK_MODULES(APPINDICATOR,
- appindicator-0.1 <= 0.2.9 ,
- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator 0.2.9])
- AC_DEFINE([HAVE_APPINDICATOR_029],[1],[Use AppIndicator 0.2.9])
- ],
- [AC_MSG_WARN(AppIndicator 0.2.9 not present")])
-fi
-
-if test "$APPINDICATOR_LIBS" == ""; then
- PKG_CHECK_MODULES(APPINDICATOR,
- appindicator-0.1 > 0.2.9,
- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator > 0.2.9])],
- [AC_MSG_WARN("AppIndicator > 0.2.9 not present")])
-fi
AM_CONDITIONAL(APPINDICATOR, test -n "$APPINDICATOR_LIBS")
AC_SUBST(APPINDICATOR_CFLAGS)
AC_SUBST(APPINDICATOR_LIBS)
# Origin: gettext-0.16
PACKAGE = psensor
-VERSION = 1.1.2
+VERSION = 1.1.0.x
PACKAGE_BUGREPORT = jeanfi@gmail.com
SHELL = /bin/sh
sensor_cur++;
}
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
if (is_appindicator_supported())
ui_appindicator_update(ui, attention);
#endif
psensor_list_free(ui->sensors);
ui->sensors = NULL;
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
ui_appindicator_cleanup();
#endif
pthread_t thread;
int optc, cmdok, opti, new_instance, ret;
char *url = NULL;
- GtkApplication *app;
+ GApplication *app;
program_name = argv[0];
log_init();
- app = gtk_application_new("wpitchoune.psensor", G_APPLICATION_IS_SERVICE);
+ app = g_application_new("wpitchoune.psensor", 0);
- printf("%d\n",g_application_register(G_APPLICATION(app), NULL, NULL));
+ g_application_register(app, NULL, NULL);
- if (!new_instance && g_application_get_is_remote(G_APPLICATION(app))) {
- g_application_activate(G_APPLICATION(app));
+ if (!new_instance && g_application_get_is_remote(app)) {
+ g_application_activate(app);
log_warn(_("A Psensor instance already exists."));
exit(EXIT_SUCCESS);
}
g_thread_init(NULL);
#endif
-#ifdef HAVE_APPINDICATOR_029
- /* gdk_thread_enter/leave only used to workaround mutex bug
- * of appindicator < 0.2.9, so do not call gdk_threads_init
- * if useless. Calling this function leads to
- * crash "Attempt to unlock mutex that was not locked" with
- * GLib 2.41.2 (new checking) probably due to bugs in GTK
- * itself.
- */
- gdk_threads_init();
-#endif
-
gtk_init(NULL, NULL);
pmutex_init(&ui.sensors_mutex);
&ui.sensors_mutex,
config_get_slog_interval());
-#if !defined(HAVE_APPINDICATOR) && !defined(HAVE_APPINDICATOR_029)
+#if !defined(HAVE_APPINDICATOR)
ui_status_init(&ui);
ui_status_set_visible(1);
#endif
g_timeout_add(1000 * ui.graph_update_interval, ui_refresh_thread, &ui);
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
ui_appindicator_init(&ui);
#endif
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
#include <libappindicator/app-indicator.h>
#endif
void ui_appindicator_cb_preferences(GtkMenuItem *mi, gpointer data)
{
-#ifdef HAVE_APPINDICATOR_029
- gdk_threads_enter();
-#endif
-
ui_pref_dialog_run((struct ui_psensor *)data);
-
-#ifdef HAVE_APPINDICATOR_029
- gdk_threads_leave();
-#endif
}
void ui_appindicator_cb_sensor_preferences(GtkMenuItem *mi, gpointer data)
{
struct ui_psensor *ui = data;
-#ifdef HAVE_APPINDICATOR_029
- gdk_threads_enter();
-#endif
-
if (ui->sensors && *ui->sensors)
ui_sensorpref_dialog_run(*ui->sensors, ui);
-
-#ifdef HAVE_APPINDICATOR_029
- gdk_threads_leave();
-#endif
}
static void
#include "config.h"
#include "ui.h"
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
void ui_appindicator_init(struct ui_psensor *ui);
void ui_appindicator_update(struct ui_psensor *ui, unsigned int attention);
void ui_appindicator_update_menu(struct ui_psensor *ui);
gtk_toggle_button_set_active(w_enable_launcher_counter,
!cfg->unity_launcher_count_disabled);
-#if !HAVE_APPINDICATOR && !HAVE_APPINDICATOR_029
+#if !HAVE_UNITY
gtk_widget_set_sensitive(GTK_WIDGET(w_enable_launcher_counter), FALSE);
gtk_widget_set_has_tooltip(GTK_WIDGET(w_enable_launcher_counter), TRUE);
#else
#include <ui_sensorpref.h>
#include <ui_color.h>
-
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
-#include "ui_appindicator.h"
+#if defined(HAVE_APPINDICATOR)
+#include <ui_appindicator.h>
#endif
enum {
(gtk_builder_get_object(builder, "indicator_label_checkbox"));
-#if !HAVE_APPINDICATOR && !HAVE_APPINDICATOR_029
+#if !HAVE_APPINDICATOR
gtk_widget_set_sensitive(GTK_WIDGET(w_appindicator_label_enabled),
FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(w_appindicator_enabled), FALSE);
if (result == GTK_RESPONSE_ACCEPT) {
apply_prefs(model, ui->config);
ui_sensorlist_update(ui, 1);
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+#if defined(HAVE_APPINDICATOR)
ui_appindicator_update_menu(ui);
#endif
}