16018N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
16018N/A<!--ArborText, Inc., 1988-1999, v.4002-->
16018N/A<!--ARC : LSARC 2009/142 LibUnique-->
16018N/A<!ENTITY cmd "libunique-1.0">
16018N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
16018N/A%commonents;
16018N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
16018N/A%booktitles;
16018N/A<!ENTITY suncopy "Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.">
16018N/A]>
16018N/A<?Pub UDT _bookmark _target>
16018N/A<?Pub Inc>
16018N/A<refentry id="libunique-10-3">
16018N/A<!-- %Z%%M% %I% %E% SMI; -->
16018N/A<refmeta><refentrytitle>&cmd;</refentrytitle><manvolnum>3</manvolnum>
16018N/A<refmiscinfo class="date">27 Feb 2009</refmiscinfo>
16018N/A<refmiscinfo class="sectdesc">&man3;</refmiscinfo>
16018N/A<refmiscinfo class="software">&release;</refmiscinfo>
16018N/A<refmiscinfo class="arch">generic</refmiscinfo>
16018N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
16018N/A</refmeta>
16018N/A
17593N/A<indexterm><primary>&cmd;</primary></indexterm>
17593N/A<indexterm><primary>A library for writing a single instance applications</primary></indexterm>
16018N/A<refnamediv id="libunique-10-3-name"><refname>&cmd;</refname>
17593N/A<refpurpose>A library for writing single instance applications</refpurpose>
17593N/A</refnamediv>
16018N/A
16018N/A<refsect1 id="libunique-10-3-desc"><title>&desc-tt;</title>
16018N/A<para>
16021N/A<command>&cmd;</command> is a library for writing single instance applications.
16021N/AIf you launch a single instance application twice, the second instance will
16021N/Aexit quietly or will send a message to the running instance.
16018N/A</para>
16018N/A<para>
16021N/A<command>&cmd;</command> makes it easy to write these kind of applications, by
16021N/Aproviding a base class, taking care of all the IPC machinery needed to send
16021N/Amessages to a running instance, and also handling startup notification.
16018N/A</para>
16018N/A<para>
16021N/A<command>&cmd;</command> supports two IPC backends: bacon and dbus. When dbus
16021N/Ais used, the messages are transmitted through a D\-Bus private channel. When
16021N/Abacon is used, <command>&cmd;</command> uses PF_UNIX family
17593N/A<citerefentry><refentrytitle>socket</refentrytitle>
17593N/A<manvolnum>3head</manvolnum></citerefentry>
16021N/Ato allow communications between processes on the same machine.
16018N/A</para>
16018N/A</refsect1>
16018N/A
16018N/A<refsect1 id="pkg-config-1-envr"><title>&envr-tt;</title>
16018N/A<para>See <citerefentry><refentrytitle>environ</refentrytitle><manvolnum>
16018N/A5</manvolnum></citerefentry> for descriptions of environment variables.</para>
16018N/A
16018N/A<variablelist termlength="narrow">
16018N/A<varlistentry>
16018N/A<term><envar>UNIQUE_BACKEND</envar></term>
16018N/A<listitem><para>
16021N/AThe default backend is dbus. User can override the default backend by setting
16021N/Athe UNIQUE_BACKEND environment variable with the name of the desired backend.
16018N/A</para>
16018N/A</listitem></varlistentry>
16018N/A</variablelist></refsect1>
16018N/A
16018N/A<refsect1 id="libunique-10-3-file"><title>&file-tt;</title>
17593N/A<para>
17593N/AThe following files are used by this library:
17593N/A</para>
17593N/A<variablelist termlength="wholeline">
17593N/A<varlistentry>
17593N/A<term><filename>/usr/lib/&cmd;.so</filename></term>
17593N/A<listitem><para>
17593N/AAPI shared library
17593N/A</para></listitem></varlistentry>
17593N/A<varlistentry>
17593N/A<term><filename>/usr/share/gtk-doc/html/unique</filename></term>
17593N/A<listitem><para>
17593N/ALocation of developer documentation
17593N/A</para></listitem></varlistentry>
16018N/A</variablelist></refsect1>
16018N/A
16018N/A<refsect1 id="libunique-10-3-attr"><title>&attr-tt;</title>
17593N/A<para>
17593N/ASee
17593N/A<olink targetdocent="REFMAN5" localinfo="attributes-5">
17593N/A<citerefentry><refentrytitle>attributes</refentrytitle>
17593N/A<manvolnum>5</manvolnum></citerefentry></olink>
17593N/Afor descriptions of the following attributes:
17593N/A</para>
16018N/A<informaltable frame="all">
17593N/A<tgroup cols="2" colsep="1" rowsep="1">
17593N/A<colspec colname="COLSPEC0" colwidth="1*">
16018N/A<colspec colname="COLSPEC1" colwidth="1*">
16018N/A<thead>
16018N/A<row>
16018N/A<entry align="center" valign="middle">ATTRIBUTE TYPE</entry>
16018N/A<entry align="center" valign="middle">ATTRIBUTE VALUE</entry></row>
16018N/A</thead>
16018N/A<tbody>
17593N/A<row>
17593N/A<entry><para>Availability</para></entry>
18745N/A<entry><para>library/libunique</para></entry></row>
17593N/A<row>
17593N/A<entry colname="COLSPEC0"><para>Interface stability</para></entry>
17593N/A<entry colname="COLSPEC1"><para>Volatile</para></entry></row>
16018N/A</tbody>
16018N/A</tgroup>
16018N/A</informaltable>
16018N/A</refsect1>
17593N/A
16018N/A<refsect1 id="libunique-10-3-also"><title>&also-tt;</title>
16018N/A<!--Reference to another man page-->
16018N/A<!--Reference to a Help manual-->
16018N/A<!--Reference to a book.-->
16018N/A<para>
16021N/A<citerefentry><refentrytitle>socket</refentrytitle><manvolnum>3head</manvolnum></citerefentry>,
16018N/A<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
16018N/A<citerefentry><refentrytitle>environ</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
16021N/A<citerefentry><refentrytitle>gnome-interfaces</refentrytitle><manvolnum>5</manvolnum></citerefentry>
16018N/A</para>
16018N/A</refsect1>
17593N/A
16018N/A<refsect1 id="libunique-10-3-note"><title>&note-tt;</title>
17593N/A<para>
17593N/AWritten by Halton Huo, Sun Microsystems Inc., 2009.
16018N/A</para>
16018N/A</refsect1>
16018N/A</refentry>