Update Notifier Applet

This package provides a simple applet for the system tray that informs the
user about available software updates on Debian linux based systems, as
Ubuntu, Linux Mint and of course Debian.

The main goal of un-applet is to provide an easy way to help users to keep
their system up to date without getting in the user's way while keeping
software dependencies at a minimum.

It should work with any panel-like application that conforms to the
freedesktop.org system tray specifications; it has been tested with
KDE, IceWm, Lxde, xfce4 and Gnome, most likely other desktop environment's
panels should be fine, too.

To inform you about pending updates, the applet icon simply changes its image,
in case of an error the applet will show an "error" image.
When the user clicks on the icon with the first (usually the left) mouse
button, they will be prompted with a yes/no-dialog box that informs about the
upgradable packages and asks if these should be installed now.
When the user says yes, a gksu prompt will ask for the administrative password
and, if this is given, start up a terminal window in which the upgrade is
performed by the un-applet-dist-upgrade script.

The check for pending updates itself is done by a script that is placed into
/etc/cron/hourly . This script first checks (if desired) if there is actually
an applet active, in the next step checks if the pre-defined time span
between updates of the package database is actually expired (default: 3 hrs.),
and, if the answer is yes, calls "apt-get update" to update the package
database and then writes some information about pending updates into a number
of files that are placed into /var/lib/un-applet .
The file /etc/un-applet/un-applet.conf allows you to configure the exact
behaviour of the /etc/cron.hourly/un-applet script and its helper scripts
un-applet-update-pkgdatabase , un-applet-verify-mirrors and
un-applet-dist-upgrade .
Since version 1.1 the system wide settings in /etc/un-applet/un-applet.conf
can be edited conveniently through a gui that can be accessed from the
applet's context menu.

CONFIGURATION

You can configure a few things through the applet's Preferences... dialog:

Time interval for polling (default 10 min.): defines how often the applet
        checks the results of the cron script (and its helper scripts). This
        does *not* affect the time interval between updates of the package
        database. This check is done in a tiny fraction of a second, so there
        should be no need to increase the value.
Preferred terminal application (default: mlterm): defines the preferred
        terminal emulator to use if it is installed. If the requested
        program is not installed, this is silently ignored; the applet then
        looks for mlterm, urxvt and xvt (in this order).
        There are also some hopefully self-explanatory options to customize
        the appearance of the terminal window.
Graphical administrator login command (default: gksu): defines which command
        to use for administrator login. On systems without root-login (as
        a standard Ubuntu install) you would have to use gksudo instead
        of gksu. However, if everything is configured properly, gksu's smart
        internal logic will decide automagically which is the right thing to
        do. On misconfigured systems you might have to change this into
        "gksudo" to work around a spoiled gksu-configuration, though.
        If you want, you can of course try to use an altogether different
        administrator login program, probably the KDE variant or others
        will work, too (although I never tried it).
Startup delay (default 2 sec.): number of seconds to sleep before actually
        requesting the system tray, to avoid problems when called too early
        on window manager start. These problems have so far only been observed
        with some versions of the IceWM system tray, so for most users it
        should be safe to set this to 0.
Icon theme: besides the default 22x22 px. tray-icon theme there are "Gnome" and
        "Mint" icon themes available in 16, 22, 32, 40 and 48 px. sizes, so
        that hopefully every one will find an icon set that fits their needs
        and taste.
        If you wish, you can add a folder with custom icons either systemwide
        to /usr/share/un-applet/icons or to ~./.config/un-applet . The next
        time you open the "Preferences..." dialog it should be present in the
        icon theme selection (no need to restart the applet).
Show notification balloons: if selected, a balloon message will be displayed
        when new updates are found. By default, this balloon will be displayed
        with a simple "animation" next to the applet. This can be changed with
        the "Animate" and "Use fixed position" options. If "Fixed position" is
        selected, the balloon will be displayed close to the upper right corner
        of the screen, regardless of the applet's position.

The behavior of the cron script and its helpers can be customized by editing
/etc/un-applet/un-applet.conf or through the applet's "System-wide settings..."
dialog. Please note that when these options are changed the changes will apply
immediately, however the package list displayed by the applet may not
accurately reflect the status for the new settings until the next update of the
package database.
The following options can be configured:

Package management program (configuration file option "PM_PROGRAM"):
        since v. 1.1 un-applet supports aptitude as alternative to apt-get
        for installing software updates. If "aptitude" is selected, but not
        installed, the update of the package database will silently fall back
        to using "apt-get", the upgrade script however will prompt the user
        if apt-get should be used or if the upgrade should be cancelled.
        Default value: "apt-get"
Upgrade method (option "DIST_UPGRADE"):
        May be "Complete" (DIST_UPGRADE="1") or "Safe" (DIST_UPGRADE="0").
        If set to "Complete", the upgrade script will use "apt-get dist-upgrade"
        or "aptitude full-upgrade" to install available updates, if set to
        "Safe" "apt-get upgrade" or "aptitude safe-upgrade" will be used.
        Default: "Complete" (DIST_UPGRADE="1")
Min. time interval... (option "UPDATE_INTERVAL"):
        Defines the minimum time interval between automatic updates of the
        package database. Default: 3 hrs.
        Please note: in the configuration file this value is given in seconds
        (default: UPDATE_INTERVAL=10500)
Only search for updates when an un-applet instance is running
        (option "NEED_APPLET"):
        If selected, the automatic update of the package database is skipped,
        if no applet instance is running. Default: on (NEED_APPLET="1")
Verify mirror server reachability... (option "VERIFY_MIRRORS"):
        Only update the package database when all mirror server(s) defined
        in the sources.list file(s) can be reached. If one or more mirrors
        can not be reached during the update, due to a bug in apt unwanted
        packages might be marked for upgrade, therefore it is recommended to
        keep this "on". Default value: "on" (VERIFY_MIRRORS="1")
Notify about updates for packages put on "hold" (option "NOTIFY_HOLDS"):
        If set to "on" you will be notified about new versions of packages
        that you have put on hold. Please note that setting this to "on" will
        only notify you about available updates for held back packages, these
        packages will not be installed through un-applet's upgrade mechanism.
        Default: "off" (NOTIFY_HOLDS="0")
Notify about new packages that will be installed (option "NOTIFY_NEW"):
        If set to "on", you will be notified about packages that are not
        installed, but would be installed along with updates for other packages.
        Default value: "off" (NOTIFY_NEW="0")

MANAGING HELD PACKAGES

Since version 1.4 a new dialog window allows to conveniently manage packages
that should be "held back", so available updates for these packages will not
be installed. You can add or remove package "holds" for both apt-get and (if
installed) aptitude. This program can be accessed from the menu by selecting
"Manage held back packages..." or independently from the applet with the
command un-applet-manage-holds .
The usage of this small application is (hopefully) self-explanatory.

THIRD PARTY SOFTWARE

This package includes several portions of third party code, please consult
the file /usr/share/doc/un-applet/README.3rdParty for details and
copyright notices.

CONTRIBUTORS

The Czech translation was written by Luděk Melichar.

DOWNLOAD AND INSTALLATION

Please download the latest version from
    http://download.tuxfamily.org/unapplet/

To install the applet, simply install the .deb package with
    # dpkg -i un-applet_<version>_all.deb
or the package installer of your choice.

If you want to view the files the package contains first, you can download the
tar.bz2 archive instead of the .deb package, extract its contents and examine
the files within the source tree. You may then build your own package from
the sources with
    $ fakeroot dpkg -b un-applet_<version>_all

If you want to be notified about updates of un-applet, you can add its package
repository to your list of package sources (currently i386 and amd64
architectures only). To do so, first add the GPG-key to your keyring (as root)
with:
    $ wget -O - http://download.tuxfamily.org/unapplet/debian/key/deb.gpg.key | apt-key add -
and then add the following line to /etc/apt/sources.list:
    deb http://download.tuxfamily.org/unapplet/debian debian main

USAGE

If the debian package is installed, you should find a main menu entry
"Update Notifier Applet" under either "System" or
"System" -> "Package Management", depending on the desktop environment in use.
Of course you can also start the applet simply by calling
    $ un-applet

SOFTWARE REQUIREMENTS

The applet needs only python-tk, tk-tktray, gksu, wget, a terminal emulator,
gettext and of course a standards compliant system tray.
Please note:
Due to a serious bug in the KDE terminal application konsole that rendered the
applet virtually unusable, since v. 1.0 only three terminal emulators that
have been thoroughly tested are supported:
xvt, rxvt-unicode (a.k.a. urxvt) and mlterm (the Multi-Lingual Terminal).
xvt is a very small program (only about 40 kB download size) that is still
very usable for English and many european locales, however it does not
support UTF-8 and therefore will not be an option for locales that use other
than latin characters. For this reason urxvt is the default dependency, which
should be a perfect solution for any European and most Asian and African
locales. If urxvt fails to handle your locale correctly, you can resort to
mlterm which is an excellent solution for locales that require more
sophisticated unicode capabilities.

If you want to use the applet with a Tcl/Tk version older than 8.6, you will
also need libtk-img for png image support (as in debian Wheezy, Jessie
uses already Tk-8.6).
PLEASE NOTE: libtk-img is *not* in the package's dependencies, because I did
not want to force users to install a library most of them will not need!

BUGS

The debian package does not list libtk-img as dependency, this may cause fatal
errors on older OS versions unless libtk-img is manually installed with
    apt-get install libtk-img
however I did not want to force users with current OS versions to install
software they don't actually need.

After starting the applet for the first time you will get a red "error" icon,
indicating that some kind of error has occured. This is normal, because the
cron script that updates the package database has not yet been running then,
and thus the files it will create (and the applet will evaluate) are not yet
present.
If you do not want to wait, you can make the icon happy by running "Update
package database..." once from the context menu, and if all goes well
you will get a green or orange icon, depending on the up-to-dateness of
your system.

Some people might find it annoying that the applet refuses to update the
package database because one or more mirrors defined in their
/etc/apt/sources.list resp. /etc/apt/sources.list.d/*.list files are
temporarily or permanently not reachable, which however does not stop other
programs from updating their systems.
This is *not* a bug but intentional; in fact this is to work around a bug
in apt-get that may cause packages accidentally to be selected for upgrade
if one or more mirror servers can not be reached, in fact this may happen even
if you do not have any network connection at all. In a worst case this might
lead to hundreds of unwanted updates to be installed if you do not watch
very closely what you are doing.
This bug in apt-get has been observed when apt-pinning is used (which
may be the case, even if you personally never consciously decided to do so,
e.g. if you use a debian-backports mirror).
To avoid this, the cron script by default checks if all of the mirrors
defined in your sources.list file(s) are actually reachable before
updating the package database. You can turn this feature off by setting
VERIFY_MIRRORS="0" in /etc/un-applet/un-applet.conf , but this is not
recommended. If one or more mirrors cause persisting problems you should
seriously consider to replace or eliminate these from your configuration
instead, please remember that a core part of your system is affected and that
the fact that other programs silently ignore this does not necessarily mean
that there is nothing wrong.

If you encounter any other bugs, please contact me:
Michael Lange <klappnase@tuxfamily.org>
